Refactor API client and stock management logic for improved clarity, error handling, and support for additional stock types.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user