1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

refactor: add temporary ts-expect-error to setGlobalStore in setHiddenEnvironments

This commit is contained in:
Nuno Góis 2024-01-29 10:26:00 +00:00
parent cdb42b3f7b
commit 7da9232516
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -18,6 +18,7 @@ export const useHiddenEnvironments = () => {
);
const setHiddenEnvironments = (environment: string) => {
// @ts-expect-error
setGlobalStore((params) => {
const hiddenEnvironments = new Set(
Array.isArray(globalStore.hiddenEnvironments)