Skip to content

Commit

Permalink
chore: prevent errors due to the new folder feature
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 7, 2024
1 parent d85fe57 commit 5e2c712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/CardsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
const docs: OCRDocument[] = [];
let doc;
documents.forEach((d, index) => {
if (d.selected) {
if (d.doc && d.selected) {
doc = d.doc;
docs.push(doc);
selected.push(...doc.pages);
Expand Down
2 changes: 1 addition & 1 deletion app/components/DocumentsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@
const docs: OCRDocument[] = [];
let doc;
documents.forEach((d, index) => {
if (d.selected) {
if (d.doc && d.selected) {
doc = d.doc;
docs.push(doc);
selected.push(...doc.pages);
Expand Down

0 comments on commit 5e2c712

Please sign in to comment.