Skip to content

Commit

Permalink
ref #35 seul les graphs concernés réagissent
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Jan 15, 2021
1 parent 476c4f6 commit c580c8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/oeasc_views/init_views.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ log_file=/tmp/init_view_oeasc.log
echo 'init_view oeasc' > $log_file
. $settings

cat $settings
# cat $settings

for file in $(echo \
"../oeasc_schemas/oeasc_functions.sql" \
Expand Down
1 change: 0 additions & 1 deletion frontend/src/modules/restitution/restitution.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ class Restitution {
if (this._data && this._data.length) {
return this._data;
}
console.log(this._options.preFilters)
this._data =
this._rawData && this._rawData.length
? this.filterData(
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/modules/restitution/restitution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { Restitution } from "./restitution.js";
import restitutionTable from "./restitution-table";
import restitutionMap from "./restitution-map";
import restitutionGraph from "./restitution-graph";
import deepEqual from "fast-deep-equal";
const props = [
"dataType",
Expand Down Expand Up @@ -136,8 +137,10 @@ export default {
mounted() {
this.baywatch(props, (prop) => (value) => {
if(Object.keys(value).length) {
prop
this.processData();
if(!deepEqual(value, this.results.options[prop])) {
console.log(prop, value, this.results.options.filters)
this.processData();
}
}
});
this.initRestitution();
Expand Down

0 comments on commit c580c8f

Please sign in to comment.