feat: query all documents

This commit is contained in:
Timothy J. Baek 2024-02-03 17:21:51 -08:00
parent 3858485675
commit eb2b1ab77b
4 changed files with 27 additions and 18 deletions

View file

@ -37,7 +37,7 @@
};
const addTagHandler = async (tagName) => {
if (!tags.find((tag) => tag.name === tagName)) {
if (!tags.find((tag) => tag.name === tagName) && tagName !== '') {
tags = [...tags, { name: tagName }];
await tagDocByName(localStorage.token, doc.name, {