regenerated dfg Project model + added keyword to topic id computed property to search results service
This commit is contained in:
+11
-1
@@ -127,7 +127,17 @@ export class SearchResultsStateService {
|
||||
});
|
||||
|
||||
readonly keywordsList = this.keywords;
|
||||
|
||||
readonly keywordTopicMap = computed(() => {
|
||||
const map = new Map<string, Topic>();
|
||||
for (const entry of this.selectedKeywordEntries()) {
|
||||
const keyword = entry.llm_keyword?.keyword?.trim().toLowerCase();
|
||||
const topic = entry.topic_mapping?.topic;
|
||||
if (keyword && topic) {
|
||||
map.set(keyword, topic);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
});
|
||||
// Parallel topic-name list for trend dashboard strategies. Entries
|
||||
// without a resolvable keyword are skipped when building the lookup map
|
||||
// so they can never collide on an `undefined` key and shadow a real one.
|
||||
|
||||
Reference in New Issue
Block a user