Skip to content

Commit 29afb9b

Browse files
Update apps/www/src/registry/ui/block-context-menu.tsx
Co-authored-by: Ziad Beyens <ziad.beyens@gmail.com>
1 parent fec88b7 commit 29afb9b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/www/src/registry/ui/block-context-menu.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export function BlockContextMenu({ children }: { children: React.ReactNode }) {
3131
const isTouch = useIsTouchDevice();
3232
const [readOnly] = usePlateState('readOnly');
3333
const openId = usePluginOption(BlockMenuPlugin, 'openId');
34-
const isOpen = React.useMemo(() => {
35-
return openId === BLOCK_CONTEXT_MENU_ID;
36-
}, [openId]);
34+
const isOpen = openId === BLOCK_CONTEXT_MENU_ID;
3735

3836
const handleTurnInto = React.useCallback(
3937
(type: string) => {

0 commit comments

Comments
 (0)