Skip to content

Commit

Permalink
remove unnecessary optional chaining
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 committed Oct 5, 2023
1 parent 3642ef5 commit a27d7e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const getSourceList = (allDataSets: ISourceDataSet[]) => {
const groupName = DATASOURCE_TYPE_DISPLAY_NAME_MAP[typeKey] || 'Default Group';

const existingGroup = finalList.find((item) => item.label === groupName);
const mappedOptions = curDataSet.data_sets?.map((dataSet) =>
const mappedOptions = curDataSet.data_sets.map((dataSet) =>
getSourceOptions(curDataSet.ds, dataSet)
);

Expand Down

0 comments on commit a27d7e0

Please sign in to comment.