Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Sep 2, 2022
1 parent 35f792b commit 0648ae1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions superset-frontend/src/views/CRUD/chart/ChartList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,10 @@ function ChartList(props: ChartListProps) {
});
setPreparingExport(true);
};
const changedByName = (lastSavedBy: Owner) => {
// eslint-disable-next-line no-unused-expressions
return lastSavedBy?.first_name
const changedByName = (lastSavedBy: Owner) =>
lastSavedBy?.first_name
? `${lastSavedBy?.first_name} ${lastSavedBy?.last_name}`
: null;
};

function handleBulkChartDelete(chartsToDelete: Chart[]) {
SupersetClient.delete({
Expand Down

0 comments on commit 0648ae1

Please sign in to comment.