Database
This commit is contained in:
@@ -28,7 +28,7 @@ export default function DocumentsSection({ onClose }: DocumentsSectionProps) {
|
||||
];
|
||||
|
||||
useEffect(() => {
|
||||
setDocuments(dataStore.getDocuments());
|
||||
dataStore.getDocuments().then(setDocuments);
|
||||
}, []);
|
||||
|
||||
const filteredDocs = selectedCategory === 'all'
|
||||
|
||||
Reference in New Issue
Block a user