Skip to content

Commit

Permalink
replace items in array instead of replacing the whole array (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm authored Sep 27, 2024
1 parent e3683fb commit 90deae7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
16 changes: 16 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
3 changes: 1 addition & 2 deletions src/components/modules/FilterMonitor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand Down

0 comments on commit 90deae7

Please sign in to comment.