mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 17:20:16 +08:00
fix: ensure storageKey defaults to an empty string in Vibe panel and workflow hooks
This commit is contained in:
parent
4879795cb9
commit
99e5669a66
@ -338,7 +338,7 @@ export const useWorkflowVibe = () => {
|
||||
const lastInstructionRef = useRef<string>('')
|
||||
|
||||
const { addVersion, current: currentFlowGraph } = useVibeFlowData({
|
||||
storageKey: `${configsMap?.flowId}`,
|
||||
storageKey: configsMap?.flowId || '',
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@ -34,7 +34,7 @@ const VibePanel: FC = () => {
|
||||
const configsMap = useHooksStore(s => s.configsMap)
|
||||
|
||||
const { current: currentFlowGraph, versions, currentVersionIndex, setCurrentVersionIndex } = useVibeFlowData({
|
||||
storageKey: `${configsMap?.flowId}`,
|
||||
storageKey: configsMap?.flowId || '',
|
||||
})
|
||||
|
||||
const vibePanelPreviewNodes = currentFlowGraph?.nodes || []
|
||||
|
||||
@ -48,5 +48,4 @@ export const createPanelSlice: StateCreator<PanelSliceShape> = set => ({
|
||||
setInitShowLastRunTab: initShowLastRunTab => set(() => ({ initShowLastRunTab })),
|
||||
showVibePanel: false,
|
||||
setShowVibePanel: showVibePanel => set(() => ({ showVibePanel })),
|
||||
vibePanelMermaidCode: '',
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user