Skip to content

Commit

Permalink
Lint code with ESLint and Prettier
Browse files Browse the repository at this point in the history
Triggered by 1941497 on branch refs/heads/issue-3881
  • Loading branch information
CarolineDenis authored and github-actions[bot] committed Sep 13, 2023
1 parent 1941497 commit f220bbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions specifyweb/frontend/js_src/lib/components/QueryBuilder/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ import { commonText } from '../../localization/common';
import { interactionsText } from '../../localization/interactions';
import { queryText } from '../../localization/query';
import { f } from '../../utils/functools';
import { filterArray, type GetOrSet, type GetSet, type IR, type R, type RA } from '../../utils/types';
import {
filterArray,
type GetOrSet,
type GetSet,
type IR,
type R,
type RA,
} from '../../utils/types';
import { removeKey } from '../../utils/utils';
import { Container, H3 } from '../Atoms';
import { Button } from '../Atoms/Button';
Expand Down Expand Up @@ -202,7 +209,7 @@ export function QueryResults(props: Props): JSX.Element {
Array.isArray(results) &&
Array.isArray(loadedResults) &&
results.length > 0 &&
typeof fetchResults === 'function'? (
typeof fetchResults === 'function' ? (
<>
{hasPermission('/record/replace', 'update') &&
hasTablePermission(model.name, 'update') && (
Expand Down Expand Up @@ -393,7 +400,8 @@ export function useFetchQueryResults({
const resultsRef = React.useRef(results);
const handleSetResults = React.useCallback(
(results: RA<QueryResultRow | undefined> | undefined) => {
const filteredResults = results !== undefined ? filterArray(results) : undefined
const filteredResults =
results !== undefined ? filterArray(results) : undefined;
setResults(filteredResults);
resultsRef.current = results;
},
Expand Down
2 changes: 1 addition & 1 deletion specifyweb/frontend/js_src/lib/localization/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ export const preferencesText = createDictionary({
},
detailedView: {
'en-us': 'Detailed view',
},
},
attachmentPreviewMode: {
'en-us': 'Attachment preview mode',
'de-ch': 'Anhang-Vorschaumodus',
Expand Down

0 comments on commit f220bbd

Please sign in to comment.