Update observer_can_run display value (#2279)

This commit is contained in:
gillespi314 2021-09-29 10:22:39 -05:00 committed by GitHub
parent 29aa6610b6
commit 81ef5d6a59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1 @@
* Change display value for `observer_can_run` to "Yes/No" on manage queries page

View file

@ -128,7 +128,9 @@ const generateTableHeaders = (isOnlyObserver = true): IDataColumn[] => {
),
accessor: "observer_can_run",
Cell: (cellProps: ICellProps): JSX.Element => (
<TextCell value={capitalize(cellProps.cell.value.toString())} />
<TextCell
value={cellProps.row.original.observer_can_run ? "Yes" : "No"}
/>
),
sortType: "basic",
});