@afeefa/vue-app 0.0.196 → 0.0.197

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.196
1
+ 0.0.197
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.196",
3
+ "version": "0.0.197",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -92,8 +92,16 @@ export default class ListFilterSearchSelect extends Mixins(ListFilterMixin) {
92
92
  [this.filter.name]: this.filter.value
93
93
  })
94
94
  .load()
95
+
95
96
  if (models.length) {
96
- this.inputModel = models[0].getTitle()
97
+ if (this.filter.value) {
98
+ const selectedModel = models.find(m => m.id === this.filter.value)
99
+ if (selectedModel) {
100
+ this.inputModel = selectedModel.getTitle()
101
+ } else {
102
+ this.inputModel = models[0].getTitle()
103
+ }
104
+ }
97
105
  }
98
106
  }
99
107
  }