Handle invalidated application keys after auth failures
This commit is contained in:
@@ -515,6 +515,9 @@ export function labelCreatePageData(store) {
|
||||
...loadLabelDraft(),
|
||||
},
|
||||
async init() {
|
||||
if (!store.isConnected) {
|
||||
return;
|
||||
}
|
||||
await this.loadLocations();
|
||||
this.$watch('form', () => this.persistDraft(), { deep: true });
|
||||
this.$watch('form.stockType', (value) => {
|
||||
@@ -536,6 +539,10 @@ export function labelCreatePageData(store) {
|
||||
}, 250);
|
||||
},
|
||||
async loadLocations() {
|
||||
if (!store.isConnected) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const { flat } = await fetchLocations(store);
|
||||
this.locations = flat;
|
||||
|
||||
Reference in New Issue
Block a user