Skip to content

Commit

Permalink
feat(queries-preview): display tagging from QP request accessible in …
Browse files Browse the repository at this point in the history
…QP component
  • Loading branch information
CachedaCodes committed Jan 3, 2024
1 parent 86a46f4 commit fa92759
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const fetchAndSaveQueryPreview: QueriesPreviewXStoreModule['actions']['fe
request,
results: response?.results ?? [],
status: 'success',
displayTagging: response?.displayTagging ?? undefined,
totalResults: response?.totalResults ?? 0
});
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Result, SearchRequest, SearchResponse } from '@empathyco/x-types';
import { Result, SearchRequest, SearchResponse, TaggingRequest } from '@empathyco/x-types';
import { Dictionary } from '@empathyco/x-utils';
import { XActionContext } from '../../../store/actions.types';
import { XStoreModule } from '../../../store/store.types';
Expand All @@ -21,6 +21,8 @@ export interface QueryPreviewItem extends StatusState {
request: SearchRequest;
/** Results of the query preview request. */
results: Result[];
/** Display tagging info */
displayTagging?: TaggingRequest;
/** The total number of results for the search query. */
totalResults: number;
}
Expand Down

0 comments on commit fa92759

Please sign in to comment.