Refactor API client and stock management logic for improved clarity, error handling, and support for additional stock types.

This commit is contained in:
2026-04-06 10:30:37 +02:00
parent 929ee6557a
commit 155c7a65d6
8 changed files with 364 additions and 103 deletions
+1 -1
View File
@@ -687,7 +687,7 @@ export function labelCreatePageData(store) {
});
saveStoredValue(STORAGE_KEYS.labelDraft, buildDraftPayload(this.form));
} catch (error) {
this.fieldErrors = normalizeValidationError(error.cause);
this.fieldErrors = normalizeValidationError(error);
this.submitError = error.message;
throw error;
}