From 3c68a9745104f70b173554abfc2f2461358080f4 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Wed, 4 Nov 2020 11:24:06 -0800 Subject: [PATCH] npm run fix --- webapp/src/components/propertyValueElement.tsx | 3 --- webapp/src/components/tableComponent.tsx | 12 ++++++------ webapp/src/components/tableHeaderMenu.tsx | 3 ++- webapp/src/components/viewHeader.tsx | 3 ++- webapp/src/components/viewMenu.tsx | 2 +- webapp/src/viewModel/boardTree.ts | 2 +- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/webapp/src/components/propertyValueElement.tsx b/webapp/src/components/propertyValueElement.tsx index e03360417..86a005db6 100644 --- a/webapp/src/components/propertyValueElement.tsx +++ b/webapp/src/components/propertyValueElement.tsx @@ -11,10 +11,7 @@ import {Utils} from '../utils' import {BoardTree} from '../viewModel/boardTree' import Editable from '../widgets/editable' -import MenuWrapper from '../widgets/menuWrapper' -import Menu from '../widgets/menu' import ValueSelector from '../widgets/valueSelector' -import {skipPartiallyEmittedExpressions} from 'typescript' type Props = { boardTree?: BoardTree diff --git a/webapp/src/components/tableComponent.tsx b/webapp/src/components/tableComponent.tsx index 88a7782e9..e7dc35965 100644 --- a/webapp/src/components/tableComponent.tsx +++ b/webapp/src/components/tableComponent.tsx @@ -64,10 +64,10 @@ class TableComponent extends React.Component { const {board, cards, activeView} = boardTree const titleRef = React.createRef() - let titleSortIcon = undefined - const titleSortOption = activeView.sortOptions.find(o => o.propertyId === Constants.titleColumnId) + let titleSortIcon + const titleSortOption = activeView.sortOptions.find((o) => o.propertyId === Constants.titleColumnId) if (titleSortOption) { - titleSortIcon = titleSortOption.reversed ? : + titleSortIcon = titleSortOption.reversed ? : } this.cardIdToRowMap.clear() @@ -161,10 +161,10 @@ class TableComponent extends React.Component { filter((template) => activeView.visiblePropertyIds.includes(template.id)). map((template) => { const headerRef = React.createRef() - let sortIcon = undefined - const sortOption = activeView.sortOptions.find(o => o.propertyId === template.id) + let sortIcon + const sortOption = activeView.sortOptions.find((o) => o.propertyId === template.id) if (sortOption) { - sortIcon = sortOption.reversed ? : + sortIcon = sortOption.reversed ? : } return (