Skip to content

Commit

Permalink
Fix [Batch run] remove the 'No data to show'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan7empest committed Nov 23, 2023
1 parent 6ab7e61 commit fbf48b7
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const JobWizardFunctionSelection = ({
store.filtersStore[FILTER_MENU_MODAL][JOB_WIZARD_FILTERS]?.values?.[HUB_CATEGORIES_FILTER]
)

const { hubFunctions, hubFunctionsCatalog } = useSelector(store => store.functionsStore)
const { hubFunctions, hubFunctionsCatalog, loading } = useSelector(store => store.functionsStore)

const dispatch = useDispatch()

Expand Down Expand Up @@ -389,9 +389,10 @@ const JobWizardFunctionSelection = ({
<FormSelect name={`${FUNCTION_SELECTION_STEP}.projectName`} options={projects} />
</div>
</div>
{(filterByName.length > 0 &&
(filterMatches.length === 0 || filteredFunctions.length === 0)) ||
functions.length === 0 ? (
{!loading &&
((filterByName.length > 0 &&
(filterMatches.length === 0 || isEmpty(filteredFunctions))) ||
isEmpty(functions)) ? (
<NoData />
) : (
<div className="functions-list">
Expand Down Expand Up @@ -438,9 +439,10 @@ const JobWizardFunctionSelection = ({
</FilterMenuModal>
)}
</div>
{(filterByName.length > 0 &&
{!loading &&
((filterByName.length > 0 &&
(filterMatches.length === 0 || isEmpty(filteredTemplates))) ||
isEmpty(templates) ? (
isEmpty(templates)) ? (
<NoData />
) : (
<div className="functions-list">
Expand Down

0 comments on commit fbf48b7

Please sign in to comment.