mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable no-prototype-builtins lint
This commit is contained in:
@@ -270,7 +270,7 @@ class PresetManager {
|
||||
const settings = Object.assign({}, getSettingsByApiId(this.apiId));
|
||||
|
||||
for (const key of filteredKeys) {
|
||||
if (settings.hasOwnProperty(key)) {
|
||||
if (Object.hasOwn(settings, key)) {
|
||||
delete settings[key];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user