Skip to content

Commit

Permalink
Fix crash in studio
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Aug 24, 2024
1 parent 0a1c90b commit a3f2047
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UI/Studio/QuestionPreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
}
let configJson: Store<QuestionableTagRenderingConfigJson[]> = value.map((x) => {
if(x === undefined){
console.log("No config found for ",path)
return []
}
if (typeof x === "string") {
return perId[x]
} else {
Expand All @@ -38,6 +42,7 @@
if (!configs) {
return [{ error: "No configuartions found" }]
}
console.log("Configs are", configs)
return configs.map((config) => {
if (config["builtin"]) {
let override = ""
Expand Down

0 comments on commit a3f2047

Please sign in to comment.