mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
useatomvaluesafe
This commit is contained in:
parent
19ebfa0361
commit
fd7fa9f6f1
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user