Skip to content

Commit b3baefd

Browse files
author
joweecaquicla
committed
magento#1515: Add keywords field to the edit image description slide panel - modified getkeywordsop logic
1 parent 507f503 commit b3baefd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

MediaGalleryUi/view/adminhtml/web/js/image/edit/keyword-ui-select.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ define([
2626
getKeywordsOp: function () {
2727
var imageTags = this.image.tags,
2828
option = [];
29+
2930
imageTags.forEach(function (tag) {
30-
option['label'] = tag.value;
31-
option['value'] = tag.value;
32-
option.push(option);
31+
option.push({
32+
label: tag,
33+
value: tag
34+
});
3335
});
3436

3537
this.options(option);

0 commit comments

Comments
 (0)