Skip to content

Commit

Permalink
Merge pull request #20 from EyeSeeTea/fix/dependency-metadata-selecto…
Browse files Browse the repository at this point in the history
…r-first-render

Fix when first render step 2 of dependencies, select by default first metadata type in selector
  • Loading branch information
MiquelAdell authored May 24, 2024
2 parents 2907808 + 8036071 commit 88ddbfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webapp/pages/bulk-apply/steps/ListDependenciesStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ export const ListDependenciesStep: React.FC<MetadataSharingWizardStepProps> = ({
setRows(rows);
setFilterOptions(filterModels);
setListOptions(options => ({ ...options, model: filterModels[0]?.id ?? "dashboards" }));
setFilteredRows(rows.filter(row => row.metadataType === selectedModel ?? filterModels[0]?.id));
setFilteredRows(rows.filter(row => row.metadataType === (selectedModel ?? filterModels[0]?.id)));

setIsLoading(false);
},
error => snackbar.error(error)
Expand Down

0 comments on commit 88ddbfd

Please sign in to comment.