Skip to content

Commit

Permalink
add type assertion
Browse files Browse the repository at this point in the history
refs 284352e
  • Loading branch information
ashokaditya committed Apr 27, 2021
1 parent 284352e commit bcf615a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ export const getEntryOnOperatorChange = (
index: parent.parentIndex,
updatedEntry: {
...parent.parent,
// @ts-expect-error
entries: [
...parent.parent.entries.slice(0, entryIndex),
{
Expand All @@ -592,7 +591,7 @@ export const getEntryOnOperatorChange = (
},
...parent.parent.entries.slice(entryIndex + 1),
],
},
} as BuilderEntry,
};
} else {
return { index: entryIndex, updatedEntry: newEntry };
Expand Down

0 comments on commit bcf615a

Please sign in to comment.