hiding temp ids in delivery configs
This commit is contained in:
parent
972957e787
commit
e84733a79c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue