Fix: etymology theme now supports multi-apply again, uses lower zoom level for multiselect

This commit is contained in:
Pieter Vander Vennet 2023-07-18 01:26:31 +02:00
parent 2cc943889d
commit 90869a1c98
7 changed files with 65 additions and 82 deletions

View file

@ -47,7 +47,10 @@ export class MultiApplyViz implements SpecialVisualization {
if (ids === undefined) {
return []
}
return JSON.parse(ids)
if (typeof ids === "string" && ids.startsWith("[")) {
return JSON.parse(ids)
}
return ids
} catch (e) {
console.warn(
"Could not parse ",