Fix "Proszę uzupełnić wszystkie pola"
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user