mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-09 06:33:29 +08:00
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:
commit
992cbb90b5
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user