From 84dc56483203e13eafe69962ec6bc0c28c47aca7 Mon Sep 17 00:00:00 2001 From: hellekin Date: Sat, 23 Jan 2021 15:42:33 +0100 Subject: Remove unused Taxonomy target and refactor debug Cleaning up the code. --- app/javascript/controllers/taxonomy_controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/javascript/controllers') diff --git a/app/javascript/controllers/taxonomy_controller.js b/app/javascript/controllers/taxonomy_controller.js index 413872b..48d9a52 100644 --- a/app/javascript/controllers/taxonomy_controller.js +++ b/app/javascript/controllers/taxonomy_controller.js @@ -9,7 +9,7 @@ import { Controller } from "stimulus" export default class extends Controller { - static targets = [ "category", "deploy", "filter", "layers", "section", "toggle" ] + static targets = [ "category", "deploy", "filter", "section", "toggle" ] initialize() { console.log("Taxonomy controller initialized.") @@ -18,6 +18,7 @@ export default class extends Controller { this.sectionsOnMap = [] } + // Load filtering sidebar connect() { console.log("Taxonomy controller connected.") this.taxonomy_uuid = this.data.get('uuid') -- cgit v1.2.3