Commit a89b6b41 authored by David Trattnig's avatar David Trattnig
Browse files

Fix: Types

parent fead0577
......@@ -11,7 +11,7 @@
export let urlShowList: string
export let renderhtml: boolean = false // Attention: to avoid XSS attack vectors use with trusted API sources only
let categories: [{ [name: string]: any }]
let categories: any[]
/* Initialize the component */
onMount(() => {
......@@ -26,7 +26,7 @@
if (!categoriesToDisplay || categoriesToDisplay.length == 0) {
categories = data
} else {
let selectedCats: [] = []
let selectedCats: any[] = Array()
for (let chosenCat of categoriesToDisplay) {
for (let cat of data) {
if (chosenCat == cat.id) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment