implemented save on empty tag commit

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-04-14 23:22:27 +02:00
parent d058fd2e57
commit 0231f965f3
3 changed files with 16 additions and 11 deletions
@@ -21,16 +21,17 @@
}
async function getCandidates(key){
if (!key) return;
var url = api(`accounting/${account.id}/tags`)
var res = await post(url,key);
if (res.ok){
yikes();
const input = await res.json();
return Object.values(input).map(mapDisplay);
} else {
error(res);
return {};
}
if (res.ok){
yikes();
const input = await res.json();
return Object.values(input).map(mapDisplay);
} else {
error(res);
return {};
}
}
function mapDisplay(object){
@@ -127,4 +128,4 @@
</span>
</td>
</tr>
{/if}
{/if}