Fix apply issue for application (#28)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix bug of applying",
|
||||
"packageName": "@acedatacloud/hub",
|
||||
"email": "cqc@cuiqingcai.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -81,7 +81,7 @@ export const getApplication = async ({
|
||||
.then((response) => {
|
||||
state.status.getApplication = Status.Success;
|
||||
commit('setApplication', response.data.items[0]);
|
||||
const credential = response.data.items?.[0].credentials?.find(
|
||||
const credential = response.data.items?.[0]?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
commit('setCredential', credential);
|
||||
|
||||
@@ -48,7 +48,7 @@ export const getApplication = async ({
|
||||
.then((response) => {
|
||||
state.status.getApplication = Status.Success;
|
||||
commit('setApplication', response.data.items[0]);
|
||||
const credential = response.data.items?.[0].credentials?.find(
|
||||
const credential = response.data.items?.[0]?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
commit('setCredential', credential);
|
||||
|
||||
@@ -56,7 +56,7 @@ export const getApplication = async ({
|
||||
.then((response) => {
|
||||
state.status.getApplication = Status.Success;
|
||||
commit('setApplication', response.data.items[0]);
|
||||
const credential = response.data.items?.[0].credentials?.find(
|
||||
const credential = response.data.items?.[0]?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
commit('setCredential', credential);
|
||||
|
||||
Reference in New Issue
Block a user