Skip to content

Commit

Permalink
replace double quote with single
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot committed Jul 7, 2023
1 parent a621101 commit 5d6ae20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions met-api/tests/utilities/factory_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,15 +533,15 @@ class TestReportSettingInfo(dict, Enum):
"""Test scenarios of feedback."""

report_setting_1 = {
"created_by": str(fake.pyint()),
"created_date": datetime.now().strftime('%Y-%m-%d'),
"display": True,
"id": 1,
"question": "What is your opinion about this?",
"question_id": str(fake.pyint()),
"question_key": "simpletextarea",
"question_type": "simpletextarea",
"survey_id": 1,
"updated_by": str(fake.pyint()),
"updated_date": datetime.now().strftime('%Y-%m-%d')
'created_by': str(fake.pyint()),
'created_date': datetime.now().strftime('%Y-%m-%d'),
'display': True,
'id': 1,
'question': 'What is your opinion about this?',
'question_id': str(fake.pyint()),
'question_key': 'simpletextarea',
'question_type': 'simpletextarea',
'survey_id': 1,
'updated_by': str(fake.pyint()),
'updated_date': datetime.now().strftime('%Y-%m-%d')
}
4 changes: 2 additions & 2 deletions met-web/src/components/common/Table/ClientSidePagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ClientSidePagination<T>({ rows, searchFilter, children }: Client
size: 10, // default page size
});
const [pageInfo, setPageInfo] = React.useState({ total: rows.length });
const [searchFilteredRows, setSearchFilteredRows] = React.useState<T[]>([]); // TODO: replace any with T[
const [searchFilteredRows, setSearchFilteredRows] = React.useState<T[]>([]);
const [paginatedRows, setPaginatedRows] = React.useState<T[]>([]);

const handleChangePagination = (newPaginationOptions: PaginationOptions<T>) => {
Expand All @@ -29,7 +29,7 @@ export function ClientSidePagination<T>({ rows, searchFilter, children }: Client
};

const handleFilter = () => {
if (!searchFilter || !searchFilter.value) {
if (!searchFilter?.value) {
setSearchFilteredRows(rows);
setPageInfo({ total: rows.length });
setPaginationOptions({ ...paginationOptions, page: 1 });
Expand Down

0 comments on commit 5d6ae20

Please sign in to comment.