Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a86276cb authored by Ludovic Schoepps's avatar Ludovic Schoepps
Browse files

Merge branch 'fix_to_array' into 'master'

Fix error (on some browser?): .values().toArray is not a function

See merge request !2
parents 906afa13 beb2cf24
Branches master
No related tags found
1 merge request!2Fix error (on some browser?): .values().toArray is not a function
Pipeline #1197824 passed
......@@ -69,7 +69,7 @@ export default function GenImageCard({
env: EnvironmentDescription,
} & GenStateProps) {
const localEnvs = Object.entries(env).flatMap(([v, archs]) => archs.map(a => `${name}-${a}-${v}`));
const archs: Architecture[] = new Set(Object.values(env).flat()).values().toArray();
const archs: Architecture[] = Array.from(new Set(Object.values(env).flat()).values());
const oneChecked = localEnvs.some(envName => generations[envName]);
const oneUnchecked = localEnvs.some(envName => !generations[envName]);
const handleChange = useMemo(() => (ev: ChangeEvent<HTMLInputElement>) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment