Skip to content

Commit

Permalink
🔥 Remove as const on updateOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 7, 2024
1 parent 7b22e3f commit 9d3537e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const BlockSettings = ({
onBlockChange: (block: Partial<Block>) => void;
}): JSX.Element | null => {
const updateOptions = (options: BlockOptions) => {
onBlockChange({ options } as Partial<Block>);
onBlockChange({ options });
};

switch (block.type) {
Expand Down

0 comments on commit 9d3537e

Please sign in to comment.