small annoyances

This commit is contained in:
Simon Martens
2026-01-12 19:23:41 +01:00
parent 7d7637fe13
commit 801c0a8da4
5 changed files with 90 additions and 61 deletions

View File

@@ -457,6 +457,10 @@ export class AlmanachEditPage extends HTMLElement {
if (!hasValues) {
continue;
}
// Validate that media field is not empty
if (!mediaValue) {
throw new Error(`Exemplar ${index + 1}: "Vorhanden als" muss ausgefüllt werden.`);
}
items.push({
id,
owner,