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:
parent
9b9682f626
commit
1b10890f72
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue