shhh... what errors?

This commit is contained in:
SethBurkart123
2024-04-05 10:22:04 +11:00
parent a66f5775a6
commit 6937ca6660
+4
View File
@@ -243,11 +243,15 @@ function UpdateCurrentValues() {
function CheckInnerElement(element: any) { function CheckInnerElement(element: any) {
for (let i in element) { for (let i in element) {
if (typeof element[i] === 'object') { if (typeof element[i] === 'object') {
// @ts-expect-error
if (typeof DefaultValues[i].length == 'undefined') { if (typeof DefaultValues[i].length == 'undefined') {
// @ts-expect-error
NewValue[i] = Object.assign({}, DefaultValues[i], CurrentValues[i]); NewValue[i] = Object.assign({}, DefaultValues[i], CurrentValues[i]);
} else { } else {
// If the object is an array, turn it back after // If the object is an array, turn it back after
// @ts-expect-error
let length = DefaultValues[i].length; let length = DefaultValues[i].length;
// @ts-expect-error
NewValue[i] = Object.assign({}, DefaultValues[i], CurrentValues[i]); NewValue[i] = Object.assign({}, DefaultValues[i], CurrentValues[i]);
let NewArray = []; let NewArray = [];
for (let j = 0; j < length; j++) { for (let j = 0; j < length; j++) {