mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 01:25:53 +08:00
fix: lint
This commit is contained in:
parent
2520e40059
commit
23abccd3a6
@ -439,7 +439,9 @@ export const useWorkflowInit = () => {
|
|||||||
const setSyncWorkflowDraftHash = useStore(s => s.setSyncWorkflowDraftHash)
|
const setSyncWorkflowDraftHash = useStore(s => s.setSyncWorkflowDraftHash)
|
||||||
const [data, setData] = useState<FetchWorkflowDraftResponse>()
|
const [data, setData] = useState<FetchWorkflowDraftResponse>()
|
||||||
const [isLoading, setIsLoading] = useState(true)
|
const [isLoading, setIsLoading] = useState(true)
|
||||||
|
useEffect(() => {
|
||||||
workflowStore.setState({ appId: appDetail.id })
|
workflowStore.setState({ appId: appDetail.id })
|
||||||
|
}, [appDetail.id, workflowStore])
|
||||||
|
|
||||||
const handleGetInitialWorkflowData = useCallback(async () => {
|
const handleGetInitialWorkflowData = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
@ -487,6 +489,7 @@ export const useWorkflowInit = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
handleGetInitialWorkflowData()
|
handleGetInitialWorkflowData()
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const handleFetchPreloadData = useCallback(async () => {
|
const handleFetchPreloadData = useCallback(async () => {
|
||||||
|
@ -177,6 +177,7 @@ const Workflow: FC<WorkflowProps> = memo(({
|
|||||||
return () => {
|
return () => {
|
||||||
handleSyncWorkflowDraft(true, true)
|
handleSyncWorkflowDraft(true, true)
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const { handleRefreshWorkflowDraft } = useWorkflowUpdate()
|
const { handleRefreshWorkflowDraft } = useWorkflowUpdate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user