mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +01:00
fix: can't sort on undefined sdks (#8982)
## About the changes According to some logs, sdks can be undefined: ``` TypeError: Cannot read properties of null (reading 'sort')\n at /unleash/node_modules/unleash-server/dist/lib/db/client-applications-store.js:330:22\n ```
This commit is contained in:
parent
76dfa3c979
commit
b1cced77c2
@ -412,7 +412,7 @@ export default class ClientApplicationsStore
|
||||
return acc;
|
||||
}, []);
|
||||
environments.forEach((env) => {
|
||||
env.sdks.sort();
|
||||
env.sdks?.sort();
|
||||
});
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user