From f96484391ae817a18f503b5c31cd3bd2211553df Mon Sep 17 00:00:00 2001 From: ludovicm67 Date: Sat, 22 Feb 2020 19:25:37 +0100 Subject: webui: run linter fix --- webui/src/pages/bug/SetStatus.tsx | 6 ++++-- webui/src/pages/list/ListQuery.tsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'webui/src/pages') diff --git a/webui/src/pages/bug/SetStatus.tsx b/webui/src/pages/bug/SetStatus.tsx index 56fde6f9..e9674424 100644 --- a/webui/src/pages/bug/SetStatus.tsx +++ b/webui/src/pages/bug/SetStatus.tsx @@ -2,11 +2,11 @@ import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; +import { Status } from '../../gqlTypes'; import Author from 'src/components/Author'; import Date from 'src/components/Date'; import { SetStatusFragment } from './SetStatusFragment.generated'; -import { Status } from '../../gqlTypes' const useStyles = makeStyles(theme => ({ main: { @@ -24,7 +24,9 @@ type Props = { function SetStatus({ op }: Props) { const classes = useStyles(); - const status = { [Status.Open]: 'reopened', [Status.Closed]: 'closed' }[op.status] + const status = { [Status.Open]: 'reopened', [Status.Closed]: 'closed' }[ + op.status + ]; return (
diff --git a/webui/src/pages/list/ListQuery.tsx b/webui/src/pages/list/ListQuery.tsx index a0db0348..2d8c698a 100644 --- a/webui/src/pages/list/ListQuery.tsx +++ b/webui/src/pages/list/ListQuery.tsx @@ -164,7 +164,7 @@ function ListQuery() { const location = useLocation(); const history = useHistory(); const params = new URLSearchParams(location.search); - const query = params.has('q') ? (params.get('q') || '') : 'status:open'; + const query = params.has('q') ? params.get('q') || '' : 'status:open'; const [input, setInput] = useState(query); -- cgit