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:
@@ -778,7 +778,7 @@ function setOriginalDataValue(data, uid, key, value) {
|
||||
for (let i = 0; i < keyParts.length - 1; i++) {
|
||||
const part = keyParts[i];
|
||||
|
||||
if (!currentObject.hasOwnProperty(part)) {
|
||||
if (!Object.hasOwn(currentObject, part)) {
|
||||
currentObject[part] = {};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user