diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..3223626e7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "(launch) Debug in Chrome", + "url": "http://localhost:5173", + "webRoot": "${workspaceFolder}/src", + "sourceMapPathOverrides": { + "webpack:///./src/*": "${webRoot}/*" + }, + "sourceMaps": true + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..439f8267b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,16 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Run dev server", + "type": "npm", + "script": "dev", + "problemMatcher": ["$vite"], + "group": { + "isDefault": true + } + } + ] +} diff --git a/src/components/modules/FilterMonitor.vue b/src/components/modules/FilterMonitor.vue index c18fea35e..c8e5e9d3d 100644 --- a/src/components/modules/FilterMonitor.vue +++ b/src/components/modules/FilterMonitor.vue @@ -481,8 +481,7 @@ export default { this.$emit('daterange-changed', this.editedFilter) }, handleFilterChanged({ items }) { - console.info('handleFilterChanged') - this.itemsToAdd = items // eslint-disable-line + this.itemsToAdd.splice(0, this.itemsToAdd.length, ...items) // eslint-disable-line // TODO: exclude item already present } },