@stoker-platform/web-app 0.5.150 → 0.5.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/List.tsx +5 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/List.tsx
CHANGED
|
@@ -812,11 +812,13 @@ export function List({
|
|
|
812
812
|
const timer = setTimeout(() => {
|
|
813
813
|
if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
|
|
814
814
|
backToStart()
|
|
815
|
-
} else if (isInitialized && (isPreloadCacheEnabled || isServerReadOnly)) {
|
|
816
|
-
setPageIndex(0)
|
|
817
|
-
setState(`collection-page-number-${labels.collection.toLowerCase()}`, "page", 1)
|
|
818
815
|
}
|
|
819
816
|
}, 750)
|
|
817
|
+
|
|
818
|
+
if (isInitialized && (isPreloadCacheEnabled || isServerReadOnly)) {
|
|
819
|
+
setPageIndex(0)
|
|
820
|
+
setState(`collection-page-number-${labels.collection.toLowerCase()}`, "page", 1)
|
|
821
|
+
}
|
|
820
822
|
return () => clearTimeout(timer)
|
|
821
823
|
}, [search])
|
|
822
824
|
|