@ditojs/admin 2.2.14 → 2.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/admin",
3
- "version": "2.2.14",
3
+ "version": "2.2.15",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
@@ -83,7 +83,7 @@
83
83
  "vite": "^4.3.1"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "71b48376ab32cc6ef6cd77bc565501ac264683d7",
86
+ "gitHead": "e56f0341b752f2aecf822e0680cc99c8403ecbe1",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -285,11 +285,14 @@ export default DitoComponent.component('DitoForm', {
285
285
  watch: {
286
286
  $route(to, from) {
287
287
  // Reload form data when navigating to a different entity in same form.
288
- if (this.providesData) {
289
- const { param } = this.meta
290
- if (param && to.params[param] !== from.params[param]) {
291
- this.loadData(true)
292
- }
288
+ const { param } = this.meta
289
+ if (
290
+ param &&
291
+ this.providesData &&
292
+ from.params[param] !== 'create' &&
293
+ to.params[param] !== from.params[param]
294
+ ) {
295
+ this.loadData(true)
293
296
  }
294
297
  },
295
298