@mixd-id/web-scaffold 0.1.230406391 → 0.1.230406392

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406391",
4
+ "version": "0.1.230406392",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -965,7 +965,9 @@ export default{
965
965
  if(!this.config.params)
966
966
  this.config.params = {}
967
967
 
968
- if(!this.config.params.presetIdx && this.config.presets.length > 0)
968
+ if(this.config.presets.length > 0 &&
969
+ (!this.config.params.presetIdx ||
970
+ !this.config.presets.find(_ => _.uid === this.config.params.presetIdx)))
969
971
  this.config.params.presetIdx = this.config.presets[0].uid
970
972
 
971
973
  return this.config.params
@@ -777,7 +777,9 @@ export default{
777
777
  if(!this.config.params)
778
778
  this.config.params = {}
779
779
 
780
- if(!this.config.params.presetIdx && this.config.presets.length > 0)
780
+ if(this.config.presets.length > 0 &&
781
+ (!this.config.params.presetIdx ||
782
+ !this.config.presets.find(_ => _.uid === this.config.params.presetIdx)))
781
783
  this.config.params.presetIdx = this.config.presets[0].uid
782
784
 
783
785
  return this.config.params