hiding temp ids in delivery configs

This commit is contained in:
cheetah 2022-12-18 16:11:57 +01:00
parent 972957e787
commit e84733a79c

View file

@ -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