Skip to content

Commit

Permalink
Use .length instead of .size to determine items in the catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonkopliku committed Jul 6, 2023
1 parent 217f7d9 commit 75d3179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/ChecksSelection/ChecksSelection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function ChecksSelection({
<div className={classNames('bg-white rounded p-3', className)}>
<CatalogContainer
onRefresh={onUpdateCatalog}
isCatalogEmpty={catalog.size === 0}
isCatalogEmpty={catalog.length === 0}
catalogError={catalogError}
loading={loading}
>
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/ClusterDetails/ChecksSelection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function ChecksSelection({ clusterId, cluster }) {
<div className="bg-white rounded p-3">
<CatalogContainer
onRefresh={() => dispatch(updateCatalog(catalogEnv))}
isCatalogEmpty={catalogData.size === 0}
isCatalogEmpty={catalogData.length === 0}
catalogError={catalogError}
loading={loading}
>
Expand Down

0 comments on commit 75d3179

Please sign in to comment.