Skip to content

Commit 38f6faa

Browse files
authored
Merge pull request #17 from danilo-css/master
Fix file preview not updating
2 parents d497190 + fc01fe6 commit 38f6faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function Main() {
6767
}, [files, db, runQuery, setQueryFieldsFromFiles]);
6868

6969
useEffect(() => {
70-
if (files.length > 0 && !selectedPreviewFile) {
70+
if (files.length > 0) {
7171
setSelectedPreviewFile(files[0].name);
7272
}
7373
}, [files, selectedPreviewFile]);

0 commit comments

Comments
 (0)