Skip to content

Commit

Permalink
#988, #1003: Fixed bug where custom values bleed into store, flagging…
Browse files Browse the repository at this point in the history
… 'reserved' properties. Fixed in export so store properties not mutated.
  • Loading branch information
mattRedBox committed Jun 23, 2020
1 parent 65813cd commit f0403b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/frictionlessDataPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async function initResourceAndInfer () {
}

function addColumnProperties (descriptor, hotId) {
let columnProperties = hotStore.state.hotTabs[hotId].columnProperties
let columnProperties = _.cloneDeep(hotStore.state.hotTabs[hotId].columnProperties)
descriptor.schema = {}
descriptor.schema.fields = columnProperties
for (const field of descriptor.schema.fields) {
Expand All @@ -227,7 +227,7 @@ function addColumnProperties (descriptor, hotId) {
}

function addTableProperties (descriptor, hotId) {
let tableProperties = hotStore.state.hotTabs[hotId].tableProperties
let tableProperties = _.cloneDeep(hotStore.state.hotTabs[hotId].tableProperties)
_.merge(descriptor, tableProperties)
moveTableSchemaProperties(descriptor, tableProperties)
updateCustomsForProperties(descriptor, 'table')
Expand Down

0 comments on commit f0403b1

Please sign in to comment.