implemented test to prevent blank tags
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user