1
0
mirror of synced 2026-08-05 15:26:55 +00:00

FIX: Tag suggester is suggesting already assigned tags (#990)

This PR fixes an issue where the tag suggester for edit title topic area was suggesting tags that are already assigned on a post. It also updates the amount of suggested tags to 7 so that there is still a decent amount of tags suggested when tags are already assigned.
This commit is contained in:
Keegan George
2024-12-03 05:25:04 +09:00
committed by GitHub
parent 117c06220e
commit fc88bb08ab
3 changed files with 37 additions and 3 deletions
@@ -112,7 +112,9 @@ export default class AiTagSuggester extends Component {
}
#tagSelectorHasValues() {
return this.args.composer?.tags && this.args.composer?.tags.length > 0;
const model = this.args.composer ? this.args.composer : this.args.buffered;
return model.get("tags") && model.get("tags").length > 0;
}
#removedAppliedTag(suggestion) {