fix error when no categories are defined
This commit is contained in:
parent
aee742a8ac
commit
d6a1aa5009
1 changed files with 5 additions and 3 deletions
|
|
@ -802,9 +802,11 @@
|
|||
var link = _.findWhere(self.products, {id: linkId})
|
||||
|
||||
self.productDialog.data = _.clone(link._data)
|
||||
if (self.productDialog.data.categories) {
|
||||
self.productDialog.data.categories = self.productDialog.data.categories.split(
|
||||
','
|
||||
)
|
||||
}
|
||||
if (self.productDialog.data.image.startsWith('data:')) {
|
||||
self.productDialog.url = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue