fix(frontend): fix app multi select (#1574)

This commit is contained in:
Faton Ramadani
2023-05-15 16:17:41 +02:00
committed by GitHub
parent 55c5467418
commit 70a8d9a3bf

View File

@@ -38,10 +38,12 @@
let labels: string[] | undefined = []
function handleItems() {
if (labels) {
if (Array.isArray(labels)) {
items = labels?.map((label) => {
const stringLabel = typeof label === 'string' ? label : `NOT_STRING`
return {
label,
label: stringLabel,
value: label
}
})