fix: filters
This commit is contained in:
@@ -89,16 +89,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -165,16 +165,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -122,16 +122,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -90,16 +90,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -173,16 +173,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -155,16 +155,14 @@ onMounted(() => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'regional' || key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchRegional()
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchRegional()
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -88,16 +88,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
@@ -99,16 +99,13 @@ onMounted(() => {
|
||||
keys.forEach((key: any, index: any) => {
|
||||
if (filterPresets.value[key]) {
|
||||
presetValues[index].value = filterPresets.value[key]
|
||||
|
||||
if (key !== 'uid') {
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
setFunctions[index](filterPresets.value[key])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
fetchUid()
|
||||
}
|
||||
|
||||
fetchUid()
|
||||
|
||||
emit('update:filters', data.value)
|
||||
})
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user