We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498d0d9 commit 9a6b628Copy full SHA for 9a6b628
redisinsight/ui/src/pages/vector-search/query/useQuery.ts
@@ -94,11 +94,11 @@ const useQuery = () => {
94
)
95
96
const handleApiError = useCallback((error: unknown) => {
97
- setItems((prevItems) => {
98
- const message =
99
- error instanceof Error ? error.message : 'Failed to execute command'
+ const message =
+ error instanceof Error ? error.message : 'Failed to execute command'
100
101
- return prevItems.map((item) => {
+ setItems((prevItems) =>
+ prevItems.map((item) => {
102
if (item.loading) {
103
return {
104
...item,
@@ -109,8 +109,8 @@ const useQuery = () => {
109
}
110
111
return item
112
- })
113
+ }),
+ )
114
setProcessing(false)
115
}, [])
116
0 commit comments