chore: generate
This commit is contained in:
parent
b3a1360ad9
commit
64f0205f97
2 changed files with 6 additions and 5 deletions
|
|
@ -118,7 +118,7 @@ export function DialogSelectServer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleRemove(url: string) {
|
async function handleRemove(url: string) {
|
||||||
server.remove(url)
|
server.remove(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,11 @@ export function useFilteredList<T>(props: FilteredListProps<T>) {
|
||||||
const [grouped, { refetch }] = createResource(
|
const [grouped, { refetch }] = createResource(
|
||||||
() => {
|
() => {
|
||||||
// When items is a function (not async filter function), call it to track changes
|
// When items is a function (not async filter function), call it to track changes
|
||||||
const itemsValue = typeof props.items === "function"
|
const itemsValue =
|
||||||
? (props.items as () => T[])() // Call synchronous function to track it
|
typeof props.items === "function"
|
||||||
: props.items
|
? (props.items as () => T[])() // Call synchronous function to track it
|
||||||
|
: props.items
|
||||||
|
|
||||||
return {
|
return {
|
||||||
filter: store.filter,
|
filter: store.filter,
|
||||||
items: itemsValue,
|
items: itemsValue,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue