Fix "Proszę uzupełnić wszystkie pola"

This commit is contained in:
Roman Pyrih
2025-11-25 08:29:03 +01:00
parent ea09fed557
commit 077345c6c1

View File

@@ -471,9 +471,9 @@
const checkFields = (data, ignoreKeys = []) => {
for (const key in data) {
if (ignoreKeys.includes(key)) continue;
const value = data[key];
if (typeof value === 'object' && value !== null) {
if (!checkFields(value, ignoreKeys)) {
return false;
@@ -487,10 +487,10 @@
return true;
};
// przekazujemy klucze, które należy zignorować
return checkFields(configData, ['step_3_extra']);
},
checkFields() {
return this.areAllFieldsFilled(this.configData);
},