Show file list on load

This commit is contained in:
2024-10-29 21:38:15 +01:00
parent 1695b411e1
commit ad3fa28bc7

View File

@@ -1,4 +1,4 @@
import { useState, useCallback, useEffect } from 'react';
import { useState, useCallback } from 'react';
import { fetchFileList } from '../services/api';
import { useWorkspace } from '../contexts/WorkspaceContext';
@@ -20,7 +20,7 @@ export const useFileList = () => {
console.error('Failed to load file list:', error);
setFiles([]);
}
}, [currentWorkspace]);
}, [currentWorkspace, workspaceLoading]);
return { files, loadFileList };
};