windmill-components 1.362.3 → 1.362.4

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.
@@ -78,7 +78,6 @@ function hasExtraKeys() {
78
78
  return Object.keys(args ?? {}).some((x) => !keys.includes(x));
79
79
  }
80
80
  function reorder() {
81
- dispatch('change');
82
81
  let lkeys = Object.keys(schema?.properties ?? {});
83
82
  if (!deepEqual(schema?.order, lkeys) || !deepEqual(keys, lkeys)) {
84
83
  if (schema?.order && Array.isArray(schema.order)) {
@@ -95,7 +94,11 @@ function reorder() {
95
94
  });
96
95
  schema.properties = n;
97
96
  }
98
- keys = Object.keys(schema.properties ?? {});
97
+ let nkeys = Object.keys(schema.properties ?? {});
98
+ if (!deepEqual(keys, nkeys)) {
99
+ keys = nkeys;
100
+ dispatch('change');
101
+ }
99
102
  }
100
103
  if (!noDelete && hasExtraKeys()) {
101
104
  removeExtraKey();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.362.3",
3
+ "version": "1.362.4",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",