Skip to content

Commit

Permalink
fix: Schema loaded by import should be cloned because it can be alter…
Browse files Browse the repository at this point in the history
…ed when applying a filter (close #949)
  • Loading branch information
cnouguier committed Sep 19, 2024
1 parent e48a92a commit 9ad2ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/composables/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useSchema () {
// load the schema file
logger.trace('[KDK] Loading schema ', schemaNameOrObject)
const schemaModule = await import(`@schemas/${schemaNameOrObject}.json`)
schema.value = schemaModule.default
schema.value = _.cloneDeep(schemaModule.default)
} else {
// clone the schema object
logger.trace('setting schema ', schemaNameOrObject.$id)
Expand Down

0 comments on commit 9ad2ed0

Please sign in to comment.