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

Commit 341012f

Browse files
committed
log response
1 parent 86158ad commit 341012f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rest/polly.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export const useSearchPolly = (query?: string) => {
1616
setLoading(true);
1717
searchPolly(query).then((res) => res.json())
1818
.then((searchPollyDto) => {
19+
console.log(searchPollyDto)
1920
setError(null);
2021
setSearchResult(searchPollyDto);
2122
})
2223
.catch((err) => {
2324
setError(err);
24-
setSearchResult([]);
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+
);
2527
}).finally(() => {
2628
setLoading(false);
2729
})

0 commit comments

Comments
 (0)