|
|
@ -18,7 +18,6 @@ type WarningResultType = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function calculateWarningStateEntries(entries: [string, any][]) { |
|
|
|
export function calculateWarningStateEntries(entries: [string, any][]) { |
|
|
|
console.log({entries}) |
|
|
|
|
|
|
|
let warninglength = 0 |
|
|
|
let warninglength = 0 |
|
|
|
entries.forEach((entry) => { |
|
|
|
entries.forEach((entry) => { |
|
|
|
warninglength += entry[1].length |
|
|
|
warninglength += entry[1].length |
|
|
@ -27,7 +26,6 @@ export function calculateWarningStateEntries(entries: [string, any][]) { |
|
|
|
entries.forEach((entry) => { |
|
|
|
entries.forEach((entry) => { |
|
|
|
errors = entry[1].filter(x => x.options.type === 'error') |
|
|
|
errors = entry[1].filter(x => x.options.type === 'error') |
|
|
|
}) |
|
|
|
}) |
|
|
|
console.log({errors}) |
|
|
|
|
|
|
|
return { length: warninglength, errors } |
|
|
|
return { length: warninglength, errors } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|