Fix: trigger reactivity when setting filter labels
All checks were successful
Build Docker Image / build (push) Successful in 3m44s
All checks were successful
Build Docker Image / build (push) Successful in 3m44s
This commit is contained in:
@@ -84,12 +84,15 @@ export function useCatalogSearch() {
|
||||
return filterLabels.value[type]?.[id] || id.slice(0, 8) + '...'
|
||||
}
|
||||
|
||||
// Set label in cache
|
||||
// Set label in cache (trigger reactivity by reassigning)
|
||||
const setLabel = (type: string, id: string, label: string) => {
|
||||
if (!filterLabels.value[type]) {
|
||||
filterLabels.value[type] = {}
|
||||
filterLabels.value = {
|
||||
...filterLabels.value,
|
||||
[type]: {
|
||||
...filterLabels.value[type],
|
||||
[id]: label
|
||||
}
|
||||
}
|
||||
filterLabels.value[type][id] = label
|
||||
}
|
||||
|
||||
// Active tokens for display
|
||||
|
||||
Reference in New Issue
Block a user