hiding temp ids in delivery configs

master
cheetah 2 years ago
parent 972957e787
commit e84733a79c

@ -402,6 +402,11 @@
storeConfig() {
const storeConfig = JSON.parse(JSON.stringify(this.configData))
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) => {
total[ keyData.identifier ] = keyData.value
return total

Loading…
Cancel
Save