error handling- ensures policyLookupSuccessful is set to false for failed policy lookups
This commit is contained in:
parent
06dae71b70
commit
b58ccce95e
1 changed files with 3 additions and 0 deletions
|
|
@ -345,6 +345,9 @@ export const useMainStore = defineStore({
|
|||
const responsePolicy = r.data.policies?.[0];
|
||||
policy.policyLookupSuccessful = !!responsePolicy;
|
||||
return r;
|
||||
}, (r) => {
|
||||
policy.policyLookupSuccessful = false;
|
||||
return r;
|
||||
});
|
||||
return response;
|
||||
} catch (responseError) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue