mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01: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:
@@ -234,6 +234,7 @@ export default Vue.extend({
|
|||||||
this.oldMessagesIndex = -1;
|
this.oldMessagesIndex = -1;
|
||||||
},
|
},
|
||||||
ON_SUGGESTION_ADD({ suggestion }: { suggestion: Suggestion }) {
|
ON_SUGGESTION_ADD({ suggestion }: { suggestion: Suggestion }) {
|
||||||
|
this.removedSuggestions = this.removedSuggestions.filter(a => a !== suggestion.name);
|
||||||
const duplicateSuggestion = this.backingSuggestions.find(
|
const duplicateSuggestion = this.backingSuggestions.find(
|
||||||
a => a.name == suggestion.name
|
a => a.name == suggestion.name
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user