Skip to content

Commit

Permalink
chore: review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 26, 2024
1 parent 40002fc commit b69e28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apps/backend/src/data-stores/PartStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class PartStore {

if (part) {
const oldPart = this.parts.get(partId)
const hasScriptChanged = oldPart && oldPart.scriptContents !== part.scriptContents
const hasScriptChanged = oldPart && !isEqual(oldPart.scriptContents, part.scriptContents)
if (hasScriptChanged) {
// Discard the edited script whenever the original script changes
this._partScripts.delete(partId)
Expand Down

0 comments on commit b69e28b

Please sign in to comment.