1
0
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:
Gastón Fournier 2024-12-16 10:12:21 +01:00 committed by GitHub
parent 76dfa3c979
commit b1cced77c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -412,7 +412,7 @@ export default class ClientApplicationsStore
return acc;
}, []);
environments.forEach((env) => {
env.sdks.sort();
env.sdks?.sort();
});
return {