File tree Expand file tree Collapse file tree
frontends/search/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ const BookmarkPopover = (props: BookmarkPopoverProps) => {
215215 const refetchBookmarks = ( curPage : number ) => {
216216 const currentDataset = $dataset ?.( ) ;
217217 if ( ! currentDataset ) return ;
218+ if ( ! props . chunkMetadata . id ) return ;
218219
219220 void fetch ( `${ apiHost } /chunk_group/chunks` , {
220221 method : "POST" ,
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export const EditChunkPageForm = (props: SingleChunkPageProps) => {
8484 createEffect ( ( ) => {
8585 const currentDatasetId = $dataset ?.( ) ?. dataset . id ;
8686 if ( ! currentDatasetId ) return ;
87+ if ( ! props . chunkId ) return ;
8788
8889 void fetch ( `${ apiHost } /chunk_group/chunks` , {
8990 method : "POST" ,
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ const ResultsPage = (props: ResultsPageProps) => {
183183 const fetchBookmarks = ( ) => {
184184 const dataset = $dataset ?.( ) ;
185185 if ( ! dataset ) return ;
186+ if ( resultChunks ( ) . length === 0 ) return ;
186187
187188 void fetch ( `${ apiHost } /chunk_group/chunks` , {
188189 method : "POST" ,
You can’t perform that action at this time.
0 commit comments