aboutsummaryrefslogtreecommitdiff
path: root/src/components/editors/item-editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/editors/item-editor.js')
-rw-r--r--src/components/editors/item-editor.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/editors/item-editor.js b/src/components/editors/item-editor.js
index 19fa7e2..6c5e976 100644
--- a/src/components/editors/item-editor.js
+++ b/src/components/editors/item-editor.js
@@ -154,6 +154,7 @@ const ItemEditor = (props) => {
value={maxQty} onChange={(e) => validateFloatInput(e, setMaxQty)} />
</label>
+ {savedBrands && savedBrands.length > 0 &&
<label>
Brand:
<select value={brand.Id ? brand.Id : ""} onChange={handleBrandSelect}>
@@ -163,6 +164,7 @@ const ItemEditor = (props) => {
{savedBrands.map(i => <option key={i.Id} value={i.Id}>{i.Name}</option>)}
</select>
</label>
+ }
<span className={"buttons"}>
<input type="button" value="Clear" onClick={clearAll}/>