Skip to content
Snippets Groups Projects
Verified Commit 705bfc5c authored by BARBIER Marc's avatar BARBIER Marc
Browse files

fixes and performances improvement

parent 713eb140
No related branches found
No related tags found
No related merge requests found
......@@ -192,9 +192,9 @@ export default defineComponent({
}
},
occurrencesToMap(occurences: string[][]): Record<string, string[]> {
occurrencesToMap(occurrences: string[][]): Record<string, string[]> {
const map: Record<string, string[]> = {}
for(const row of occurences) {
for(const row of occurrences) {
const [window, patternId] = row
if(map[patternId] === undefined) {
map[patternId] = [ window ]
......@@ -207,7 +207,7 @@ export default defineComponent({
async generateChartLabels(chartData: ChartElement[], dataset: Table) {
const patternOcc = this.patternsOcc
if(patternOcc) {
if(patternOcc && patternOcc.rowsStartingFrom1) {
const windowIntervals = this.windowToStepIntervals(dataset)
//todo search for the window columns
const firstRow = dataset.rowsStartingFrom1[0]
......
......@@ -44,7 +44,7 @@
v-model="selectedAnomalyPatterns"
/>
</div>
<div class="row">
<div class="row" v-if="patterns?.rowsStartingFrom1">
<label>Patterns</label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment