Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 38f6a07

Browse files
committed
remove polly cache
1 parent 341012f commit 38f6a07

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/dataproducts/accessRequest/accessRequestForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const AccessRequestFormV2 = ({
145145
input: string,
146146
callback: (options: Option[]) => void
147147
) => {
148+
console.log(input)
148149
setSearchText(input)
149150
setTimeout(() => {
150151
callback(
@@ -235,7 +236,6 @@ const AccessRequestFormV2 = ({
235236
<AsyncSelect
236237
className="pt-2"
237238
classNamePrefix="select"
238-
cacheOptions
239239
isClearable
240240
placeholder="Skriv inn navnet på behandlingen"
241241
noOptionsMessage={({ inputValue }) =>

lib/rest/polly.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ export const useSearchPolly = (query?: string) => {
2121
setSearchResult(searchPollyDto);
2222
})
2323
.catch((err) => {
24+
const searchPollyDto= [{"external_id":"965f1ff3-0c50-40cf-9cb9-2682fb6160be","name":"CV utdanningsdata med fritekstfelter til SSB","url":"https://behandlingskatalog.intern.dev.nav.no/process/purpose/STATISTIKK/965f1ff3-0c50-40cf-9cb9-2682fb6160be"}]
2425
setError(err);
25-
setSearchResult([{"external_id":"965f1ff3-0c50-40cf-9cb9-2682fb6160be","name":"CV utdanningsdata med fritekstfelter til SSB","url":"https://behandlingskatalog.intern.dev.nav.no/process/purpose/STATISTIKK/965f1ff3-0c50-40cf-9cb9-2682fb6160be"}]
26-
);
26+
console.log(searchPollyDto)
27+
setSearchResult(searchPollyDto)
2728
}).finally(() => {
2829
setLoading(false);
2930
})

0 commit comments

Comments
 (0)