fix: revision styles for workflow (#4087)

This commit is contained in:
Whitewater
2024-05-30 19:10:14 +08:00
committed by GitHub
parent 93d3350c8c
commit 4308a79e89
5 changed files with 10 additions and 7 deletions

View File

@@ -88,13 +88,13 @@ const Header: FC = () => {
const handleShowFeatures = useCallback(() => {
const {
showFeaturesPanel,
isRestoring,
setShowFeaturesPanel,
} = workflowStore.getState()
if (getNodesReadOnly() && !isRestoring)
return
setShowFeaturesPanel(true)
setShowFeaturesPanel(!showFeaturesPanel)
}, [workflowStore, getNodesReadOnly])
const handleCancelRestore = useCallback(() => {