mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
fixes #5205
This commit is contained in:
parent
c0ffab768a
commit
9132592717
@ -234,7 +234,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
this.setEditingItem(null, { id: '', title: '', price: 0, image: '', description: '', categories: [], priceType: 'Fixed', inventory: null, disabled: false });
|
||||
},
|
||||
editItem(index) {
|
||||
this.setEditingItem(index, Object.assign({}, this.config[index]));
|
||||
this.setEditingItem(index, Object.assign({ id: '', title: '', price: 0, image: '', description: '', categories: [], priceType: 'Fixed', inventory: null, disabled: false }, this.config[index]));
|
||||
},
|
||||
saveItem() {
|
||||
// set id from title if not set
|
||||
|
Loading…
Reference in New Issue
Block a user