Fix "Proszę uzupełnić wszystkie pola"
This commit is contained in:
@@ -471,9 +471,9 @@
|
|||||||
const checkFields = (data, ignoreKeys = []) => {
|
const checkFields = (data, ignoreKeys = []) => {
|
||||||
for (const key in data) {
|
for (const key in data) {
|
||||||
if (ignoreKeys.includes(key)) continue;
|
if (ignoreKeys.includes(key)) continue;
|
||||||
|
|
||||||
const value = data[key];
|
const value = data[key];
|
||||||
|
|
||||||
if (typeof value === 'object' && value !== null) {
|
if (typeof value === 'object' && value !== null) {
|
||||||
if (!checkFields(value, ignoreKeys)) {
|
if (!checkFields(value, ignoreKeys)) {
|
||||||
return false;
|
return false;
|
||||||
@@ -487,10 +487,10 @@
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
// przekazujemy klucze, które należy zignorować
|
|
||||||
return checkFields(configData, ['step_3_extra']);
|
return checkFields(configData, ['step_3_extra']);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
checkFields() {
|
checkFields() {
|
||||||
return this.areAllFieldsFilled(this.configData);
|
return this.areAllFieldsFilled(this.configData);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user