Skip to content

Commit 6ad9c39

Browse files
committed
6871: Removed unnecessary param check
1 parent 6eff0e8 commit 6ad9c39

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

assets/admin/components/util/fetch-data-hook.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ function useFetchDataHook(apiCall, ids, params = {}, key = "id") {
1414
const validIds = ids.filter((id) => id != null && id !== "");
1515
if (validIds.length === 0) return;
1616

17-
// Check if params contain invalid values
18-
const hasInvalidParams = Object.values(params).some(
19-
(value) => value === "" || value == null,
20-
);
21-
if (hasInvalidParams) return;
22-
2317
async function fetchItems() {
2418
setLoading(true);
2519

0 commit comments

Comments
 (0)