hiding temp ids in delivery configs

master
cheetah 2 years ago
parent 972957e787
commit e84733a79c

@ -402,6 +402,11 @@
storeConfig() { storeConfig() {
const storeConfig = JSON.parse(JSON.stringify(this.configData)) const storeConfig = JSON.parse(JSON.stringify(this.configData))
const oldBK = storeConfig.boskrypt.keys const oldBK = storeConfig.boskrypt.keys
Object.keys(storeConfig.deliveryPresets)
.map(_key => {
delete storeConfig.deliveryPresets[_key]._id
})
storeConfig.boskrypt.keys = Object.values(oldBK).reduce((total, keyData) => { storeConfig.boskrypt.keys = Object.values(oldBK).reduce((total, keyData) => {
total[ keyData.identifier ] = keyData.value total[ keyData.identifier ] = keyData.value
return total return total

Loading…
Cancel
Save