Skip to content

Commit

Permalink
fix: no licenses bug (#4040)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiahao-hjh committed Mar 27, 2024
1 parent 483a268 commit 7de68c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/app/layout/stores/layout.ts
Expand Up @@ -181,12 +181,13 @@ const layout = createStore({
} else {
const orgRes = await getLicenses({ scope: 'ORG' });
const jse = new JSEncrypt();

jse.setPrivateKey(PRIVATE_KEY);
const data = jse.decrypt(orgRes.data);
if (data) {
const parseData = JSON.parse(data);
features = parseData.features;
} else {
features = [];
}
}
}
Expand Down

0 comments on commit 7de68c7

Please sign in to comment.