sprintify-ui 0.6.69 → 0.6.70

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": "sprintify-ui",
3
- "version": "0.6.69",
3
+ "version": "0.6.70",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -147,7 +147,15 @@ watch(
147
147
  return;
148
148
  }
149
149
 
150
- const ids = props.modelValue.map((id) => id.toString());
150
+ // Do not fetch if the modelValue is the same as the local models
151
+
152
+ const ids = props.modelValue.map((id: number | string) => id.toString());
153
+
154
+ const localModelIds = models.value.map((m) => m[props.primaryKey]);
155
+
156
+ if (isEqual(ids, localModelIds)) {
157
+ return;
158
+ }
151
159
 
152
160
  http
153
161
  .get(props.showRouteUrl(ids))