Skip to content

Commit

Permalink
Merge pull request #25 from pvdthings/dev
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
dillonfagan committed Jun 19, 2024
2 parents e709461 + a36498b commit 770c280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api/services/inventory/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ const createItems = async (thingId, { quantity, brand, description, estimatedVal
const updateItem = async (id, { brand, description, estimatedValue, hidden, condition, image, manuals }) => {
let updatedFields = {};

if (brand) {
if (brand !== null) {
updatedFields['Brand'] = brand;
}

if (description) {
if (description !== null) {
updatedFields['Description'] = description;
}

if (estimatedValue) {
if (estimatedValue !== null) {
updatedFields['Estimated Value'] = estimatedValue;
}

Expand Down

0 comments on commit 770c280

Please sign in to comment.