Skip to content

Commit

Permalink
Removed unnecessary model altering logic (#150)
Browse files Browse the repository at this point in the history
This reverts commit 513021c.
  • Loading branch information
leo authored Feb 20, 2025
1 parent 7b2987d commit 6db17a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ export const transformMetaQuery = (

// Entities can only be created, altered, or dropped on existing models, so the model
// is guaranteed to exist.
const modelBeforeUpdate = structuredClone(JSON.parse(JSON.stringify(model)) as Model);
const modelBeforeUpdate = structuredClone(model as Model);
const existingModel = model as Model;

const pluralType = PLURAL_MODEL_ENTITIES[entity];
Expand Down

0 comments on commit 6db17a4

Please sign in to comment.