Merge pull request #161 from nnsdev/fix-suggestion-addition-after-removal

fix(chat): Filter removed suggestions array if suggestion is readded
This commit is contained in:
リーフストーム
2021-03-21 08:26:06 +01:00
committed by GitHub

View File

@@ -234,6 +234,7 @@ export default Vue.extend({
this.oldMessagesIndex = -1;
},
ON_SUGGESTION_ADD({ suggestion }: { suggestion: Suggestion }) {
this.removedSuggestions = this.removedSuggestions.filter(a => a !== suggestion.name);
const duplicateSuggestion = this.backingSuggestions.find(
a => a.name == suggestion.name
);