Commit ee3eb518 authored by aniket-engg's avatar aniket-engg Committed by Aniket

toggele analysis count update

parent d002f963
......@@ -133,13 +133,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
const showWarningsByModule = (showOnlyModule: string) => {
let count = 0
if(allWarnings[showOnlyModule]) {
const newWarningState = {}
newWarningState[showOnlyModule] = allWarnings[showOnlyModule]
setWarningState({[showOnlyModule]: allWarnings[showOnlyModule]})
count = allWarnings[showOnlyModule].length
} else if (showOnlyModule === 'all') {
setWarningState(allWarnings)
for (const e in allWarnings) count += allWarnings[e].length
}
props.event.trigger('staticAnaysisWarning', [count])
}
const run = (lastCompilationResult, lastCompilationSource, currentFile) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment