useatomvaluesafe

This commit is contained in:
sawka 2024-08-26 16:56:37 -07:00
parent 19ebfa0361
commit fd7fa9f6f1

View File

@ -132,7 +132,7 @@ const BlockFrame_Header = ({ nodeModel, viewModel, preview }: BlockFrameProps) =
const preIconButton = util.useAtomValueSafe(viewModel.preIconButton);
const headerTextUnion = util.useAtomValueSafe(viewModel.viewText);
const magnified = jotai.useAtomValue(nodeModel.isMagnified);
const manageConnection = jotai.useAtomValue(viewModel.manageConnection);
const manageConnection = util.useAtomValueSafe(viewModel.manageConnection);
const dragHandleRef = preview ? null : nodeModel.dragHandleRef;
const onContextMenu = React.useCallback(