fix: check existsPresetName update index to id

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-11-07 20:26:06 +01:00
parent 645575ea31
commit 4cc9c90a30

View File

@ -184,7 +184,7 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
existsPresetName(name: string) {
return (this.consoleFilters.findIndex((filter: any) => filter.name === name && filter.index !== this.form.index) >= 0)
return (this.consoleFilters.findIndex((filter: any) => filter.name === name && filter.id !== this.form.id) >= 0)
}
clearForm() {