Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alnasir7 committed Oct 31, 2021
1 parent 65d0edb commit 0fcbf4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions frontend/components/ModelForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ export const ModelTable = ({
return {
...column,
render: (id) => {
const obj = objects?.filter(item => item.id === id)[0] || objects?.[id]
const obj =
objects?.filter((item) => item.id === id)[0] || objects?.[id]
const value = obj?.[column.name]
return (obj && value !== null) ? renderFunction(value, obj) : 'None'
return obj && value !== null ? renderFunction(value, obj) : 'None'
},
}
} else return column
Expand Down
3 changes: 1 addition & 2 deletions frontend/components/common/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ const GreyText = styled.span`
color: ${LIGHT_GRAY};
`


const Table = ({
columns,
data,
Expand Down Expand Up @@ -148,7 +147,7 @@ const Table = ({
return strings.some((string) =>
string.toLowerCase().startsWith(searchQuery.toLowerCase()),
)
}
}
return false
})
})
Expand Down

0 comments on commit 0fcbf4b

Please sign in to comment.