fix: send tags to upload doc handler in modal dialog

This commit is contained in:
Jonathan Rohde
2024-07-18 12:38:23 +02:00
parent 8dc73fdbdb
commit 7e03624408
2 changed files with 9 additions and 4 deletions
@@ -35,12 +35,12 @@
SUPPORTED_FILE_TYPE.includes(file['type']) ||
SUPPORTED_FILE_EXTENSIONS.includes(file.name.split('.').at(-1))
) {
uploadDoc(file);
uploadDoc(file, tags);
} else {
toast.error(
`Unknown File Type '${file['type']}', but accepting and treating as plain text`
);
uploadDoc(file);
uploadDoc(file, tags);
}
}