Skip to content

Commit

Permalink
use the right api calls to list records
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <[email protected]>
  • Loading branch information
stevecassidy committed Nov 15, 2023
1 parent 48a7606 commit 2fe3162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/components/notebook/add_record_by_type.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {useEventedPromise, constantArgsSplit} from '../../pouchHook';
import {QRCodeButton} from '../../fields/qrcode/QRCodeFormField';
import {
ProjectInformation,
getAllRecordsWithRegex,
getRecordsWithRegex,
RecordMetadata,
} from 'faims3-datamodel';
import {getProjectMetadata} from '../../../projectMetadata';
Expand Down Expand Up @@ -67,7 +67,7 @@ export default function AddRecordButtons(props: AddRecordButtonsProps) {

const handleScanResult = (value: string) => {
// find a record with this field value
getAllRecordsWithRegex(project_id, value).then(records => {
getRecordsWithRegex(project_id, value, true).then(records => {
// navigate to it
// what should happen if there are more than one?
for (const key in records) {
Expand Down

0 comments on commit 2fe3162

Please sign in to comment.