add eslint comment to ignore todo for empty if block (#1624)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Marc Velasco 2021-11-01 18:18:45 -07:00 committed by GitHub
parent 9b9682f626
commit 1b10890f72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,7 @@ const TableHeaderMenu: FC<Props> = (props: Props): JSX.Element => {
name={intl.formatMessage({id: 'TableHeaderMenu.insert-left', defaultMessage: 'Insert left'})}
onClick={() => {
if (props.templateId === Constants.titleColumnId) {
// eslint-disable-next-line no-warning-comments
// TODO: Handle name column
} else {
const index = board.fields.cardProperties.findIndex((o: IPropertyTemplate) => o.id === templateId)
@ -51,6 +52,7 @@ const TableHeaderMenu: FC<Props> = (props: Props): JSX.Element => {
name={intl.formatMessage({id: 'TableHeaderMenu.insert-right', defaultMessage: 'Insert right'})}
onClick={() => {
if (templateId === Constants.titleColumnId) {
// eslint-disable-next-line no-warning-comments
// TODO: Handle title column
} else {
const index = board.fields.cardProperties.findIndex((o: IPropertyTemplate) => o.id === templateId) + 1