Skip to content

Commit

Permalink
that was subtle
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrmendy committed Oct 10, 2024
1 parent 44df8a7 commit 2873981
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,10 @@ export const runDeleteProperties = (
editorState: EditorState,
command: DeleteProperties,
): CommandFunctionResult => {
const { editorStatePatch: propertyUpdatePatch } = deleteValuesAtPath(
editorState,
command.element,
command.properties,
)
const { editorStatePatch: propertyUpdatePatch, editorStateWithChanges: editorStateWithChanges } =
deleteValuesAtPath(editorState, command.element, command.properties)

const propertiesToUnsetPatches = getPropertiesToUnsetPatches(editorState, command)
const propertiesToUnsetPatches = getPropertiesToUnsetPatches(editorStateWithChanges, command)

return {
editorStatePatches: [propertyUpdatePatch, ...propertiesToUnsetPatches],
Expand Down

0 comments on commit 2873981

Please sign in to comment.