Skip to content

Commit f92617f

Browse files
committed
Fix compile
1 parent bebfe66 commit f92617f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/FairDOElasticSearch.stories.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { FairDOConfig } from "@/config/FairDOConfig"
22

33
import type { Meta, StoryObj } from "@storybook/react"
4-
import { PidDisplay } from "@/components/result/PidDisplay"
54
import { FairDOElasticSearch } from "./FairDOElasticSearch"
65

76
const meta = {
@@ -82,7 +81,7 @@ const demoConfig: FairDOConfig = {
8281
{
8382
key: "digitalObjectType.keyword",
8483
label: "File Type",
85-
optionsTextDisplay: (props) => <PidDisplay pid={props.text} />
84+
usePidResolver: true
8685
},
8786
{
8887
key: "hadPrimarySource.keyword",
@@ -94,8 +93,7 @@ const demoConfig: FairDOConfig = {
9493
},
9594
{
9695
key: "NMR_Method.keyword",
97-
label: "NMR Method",
98-
optionsTextDisplay: (props) => <PidDisplay pid={props.text} />
96+
label: "NMR Method"
9997
}
10098
],
10199
resultFields: [], // Leave empty to get all fields

0 commit comments

Comments
 (0)