1
0
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:
リーフストーム 2021-03-21 08:26:06 +01:00 committed by GitHub
commit 992cbb90b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
);