Skip to content

Commit 3719495

Browse files
committed
fix: always return items
This mistake was, of course, causing undefined to be returned instead of the items array.
1 parent 51ea4f0 commit 3719495

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/useFind.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ export default function find(options: UseFindOptions): UseFindData {
111111
queryInfo,
112112
serviceState.keyedById
113113
)
114-
if (items && items.length) {
115-
return items
116-
}
114+
return items
117115
} else {
118116
return model.findInStore(getterParams).data
119117
}

0 commit comments

Comments
 (0)