From 724d652682000e2e06ea734fb667ba17de9b3d15 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 8 Oct 2020 19:16:36 +0000 Subject: [PATCH] --- ayanova/src/views/ay-about.vue | 2 +- ayanova/src/views/ay-log.vue | 4 +--- ayanova/src/views/ops-metrics.vue | 11 +++++++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ayanova/src/views/ay-about.vue b/ayanova/src/views/ay-about.vue index 255c32da..1f641164 100644 --- a/ayanova/src/views/ay-about.vue +++ b/ayanova/src/views/ay-about.vue @@ -239,7 +239,7 @@ function clickHandler(menuItem) { let logText = ""; //de-lodash - // window.$gz._.forEach(m.vm.$store.state.logArray, function appendLogItem( + // window.$gz. _.forEach(m.vm.$store.state.logArray, function appendLogItem( // value // ) { // logText += value + "\n"; diff --git a/ayanova/src/views/ay-log.vue b/ayanova/src/views/ay-log.vue index 1d8bc41c..c9ed76ca 100644 --- a/ayanova/src/views/ay-log.vue +++ b/ayanova/src/views/ay-log.vue @@ -22,9 +22,7 @@ export default { }); let outText = ""; - window.$gz._.forEach(vm.$store.state.logArray, function appendLogItem( - value - ) { + vm.$store.state.logArray.forEach(function appendLogItem(value) { outText += value + "\n"; }); this.logText = outText; diff --git a/ayanova/src/views/ops-metrics.vue b/ayanova/src/views/ops-metrics.vue index 1d3d7495..0496c486 100644 --- a/ayanova/src/views/ops-metrics.vue +++ b/ayanova/src/views/ops-metrics.vue @@ -310,14 +310,21 @@ export default { }, dbTopTablesChartData() { // debugger; + if (!this.db.topTables) { + return { labels: [], datasets: [] }; + } return { // These labels appear in the legend and in the tooltips when hovering different arcs //_.map(users, 'user'); - labels: window.$gz._.map(this.db.topTables, "name"), + //de-lodash + // labels: window.$gz._.map(this.db.topTables, "name"), + labels: this.db.topTables.map(z => z.name), datasets: [ { label: this.$ay.t("MetricTopTablesSize"), - data: window.$gz._.map(this.db.topTables, "value"), + //de-lodash + // data: window.$gz._.map(this.db.topTables, "value"), + data: this.db.topTables.map(z => z.value), backgroundColor: getPalette( this.db.topTables ? this.db.topTables.length : 3 ),