implemented test to prevent blank tags

This commit is contained in:
2025-08-25 18:27:08 +02:00
parent ac5f5b6b6b
commit 53db593936
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
let router = useTinyRouter();
async function addTag(){
if (!newTag) return;
if (!id) {
// when creating elements, they don`t have an id, yet
tags.push(newTag);