random fixes

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-24 16:50:15 +03:00
1 parent fe06643a8e
commit 7a814635e1
3 files changed
+15 -19

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export function isAllowedResource(resources: string | string[]) {
if (!Array.isArray(resources)) {
resources = [resources];
}
const { allowedResources } = getHostedCluster();
const { allowedResources = [] } = getHostedCluster() || {};
for (const resource of resources) {
if (!allowedResources.includes(resource)) {
return false;