fixed bug with unsupported connectItems

This commit is contained in:
mushka 2022-08-22 16:29:45 +03:00
parent be2b7f77ba
commit bc426aa1d2

View File

@ -140,13 +140,17 @@ export default inject(
thirdPartyStore.ownCloudConnectItem,
thirdPartyStore.webDavConnectItem,
thirdPartyStore.sharePointConnectItem,
].map((item) => ({
isAvialable: !!item,
id: item[0],
providerName: item[0],
isOauth: item.length > 1,
oauthHref: item.length > 1 ? item[1] : "",
}));
].map((item) =>
item
? {
isAvialable: !!item,
id: item[0],
providerName: item[0],
isOauth: item.length > 1,
oauthHref: item.length > 1 ? item[1] : "",
}
: null
);
const { getOAuthToken } = auth.settingsStore;