fix: check existsPresetName update index to id
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
645575ea31
commit
4cc9c90a30
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user