Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { batchEditText } from '../../localization/batchEdit';
import { commonText } from '../../localization/common';
import { interactionsText } from '../../localization/interactions';
import type { RA,RR } from '../../utils/types';
import type { RA, RR } from '../../utils/types';
import { H2, H3, Ul } from '../Atoms';
import { Button } from '../Atoms/Button';
import { Input, Label } from '../Atoms/Form';
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ export function PrepDialog({

const items = filterArray(
preparations.map((preparation, index) => {
if (selected[index] === 0 || Number.isNaN(selected[index])) return undefined;
if (selected[index] === 0 || Number.isNaN(selected[index]))
return undefined;

const result = new itemTable.Resource();
result.set(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ export function PrepDialogRow({
</td>
<td>
{preparation.taxon ? (
<Link.NewTab href={getResourceViewUrl('Taxon', preparation.taxonId)}>
<Link.NewTab
href={getResourceViewUrl('Taxon', preparation.taxonId)}
>
{localized(preparation.taxon)}
</Link.NewTab>
) : (
<span>{interactionsText.notAvailable()}</span>
<span>{interactionsText.notAvailable()}</span>
)}
</td>
<td>{preparation.prepType}</td>
Expand Down
6 changes: 3 additions & 3 deletions specifyweb/frontend/js_src/lib/components/Reports/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ function ReportRow({
</td>
<td>
<ReadOnlyContext.Provider value>
<FormattedResourceUrl
resourceUrl={entry.appResource.specifyUser}
/>
<FormattedResourceUrl
resourceUrl={entry.appResource.specifyUser}
/>
</ReadOnlyContext.Provider>
</td>
<td>
Expand Down
18 changes: 10 additions & 8 deletions specifyweb/frontend/js_src/lib/components/SearchDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function SearchDialog<SCHEMA extends AnySchema>(
}}
/>
) : (
<SearchForm {...props} onUseQueryBuilder={handleUseQueryBuilder}/>
<SearchForm {...props} onUseQueryBuilder={handleUseQueryBuilder} />
);
}

Expand Down Expand Up @@ -186,7 +186,7 @@ function SearchForm<SCHEMA extends AnySchema>({
onClose: handleClose,
onUseQueryBuilder: handleUseQueryBuilder,
onAdd: handleAdd,
multiple
multiple,
}: {
readonly forceCollection: number | undefined;
readonly extraFilters: RA<QueryComboBoxFilter<SCHEMA>> | undefined;
Expand All @@ -198,7 +198,7 @@ function SearchForm<SCHEMA extends AnySchema>({
readonly onAdd?:
| ((resources: RA<SpecifyResource<SCHEMA>>) => void)
| undefined;
readonly multiple?: boolean
readonly multiple?: boolean;
}): JSX.Element | null {
const templateResource = React.useMemo(
() =>
Expand Down Expand Up @@ -242,11 +242,13 @@ function SearchForm<SCHEMA extends AnySchema>({
{queryText.queryBuilder()}
</Button.Info>
</ProtectedAction>
{multiple === true && <SelectRecordSets
handleParentClose={handleClose}
table={table}
onAdd={handleAdd}
/>}
{multiple === true && (
<SelectRecordSets
handleParentClose={handleClose}
table={table}
onAdd={handleAdd}
/>
)}
<Submit.Success form={id('form')}>
{commonText.search()}
</Submit.Success>
Expand Down
Loading
Loading