Skip to content

Commit 7bd0e9c

Browse files
authored
Merge pull request #42 from rschamp/stores
fix: allow updates to happen
2 parents 530922d + 7b5a136 commit 7bd0e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class WebHelper extends Helper {
130130
store (assetType, dataFormat, data, assetId) {
131131
const asset = new Asset(assetType, assetId, dataFormat);
132132
// If we have an asset id, we should update, otherwise create to get an id
133-
const create = assetId !== '' || assetId === null || typeof assetId === 'undefined';
133+
const create = assetId === '' || assetId === null || typeof assetId === 'undefined';
134134

135135
// Use the first store with the appropriate asset type and url function
136136
const store = this.stores.filter(s =>

0 commit comments

Comments
 (0)