sprintify-ui 0.6.71 → 0.6.72
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/dist/sprintify-ui.es.js
CHANGED
|
@@ -31155,16 +31155,17 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
|
|
|
31155
31155
|
{ immediate: !0 }
|
|
31156
31156
|
);
|
|
31157
31157
|
function l() {
|
|
31158
|
-
if (r.currentModels !== void 0 || r.showRouteUrl == null)
|
|
31158
|
+
if (console.log("check if currentModels is undefined"), r.currentModels !== void 0 || (console.log("check if showRouteUrl is empty"), r.showRouteUrl == null))
|
|
31159
31159
|
return;
|
|
31160
|
-
if (!r.modelValue) {
|
|
31160
|
+
if (console.log("check if modelValue is empty"), !r.modelValue) {
|
|
31161
31161
|
a.value = [];
|
|
31162
31162
|
return;
|
|
31163
31163
|
}
|
|
31164
|
+
console.log("check models");
|
|
31164
31165
|
const d = r.modelValue.map((h) => h.toString()), c = a.value.map((h) => h[r.primaryKey]);
|
|
31165
|
-
uc(d, c) || i.get(r.showRouteUrl(d)).then((h) => {
|
|
31166
|
+
uc(d, c) || (console.log("fetch models"), i.get(r.showRouteUrl(d)).then((h) => {
|
|
31166
31167
|
a.value = h.data.data.filter((f) => d.includes(f[r.primaryKey]));
|
|
31167
|
-
}).catch((h) => h);
|
|
31168
|
+
}).catch((h) => h));
|
|
31168
31169
|
}
|
|
31169
31170
|
function s(d) {
|
|
31170
31171
|
a.value = d, e(
|
package/package.json
CHANGED
|
@@ -133,19 +133,29 @@ watch(
|
|
|
133
133
|
);
|
|
134
134
|
|
|
135
135
|
function fetchModels() {
|
|
136
|
+
|
|
137
|
+
console.log('check if currentModels is undefined');
|
|
138
|
+
|
|
136
139
|
if (props.currentModels !== undefined) {
|
|
137
140
|
return;
|
|
138
141
|
}
|
|
139
142
|
|
|
143
|
+
console.log('check if showRouteUrl is empty');
|
|
144
|
+
|
|
140
145
|
if (props.showRouteUrl == null) {
|
|
141
146
|
return;
|
|
142
147
|
}
|
|
143
148
|
|
|
149
|
+
console.log('check if modelValue is empty');
|
|
150
|
+
|
|
144
151
|
if (!props.modelValue) {
|
|
145
152
|
models.value = [];
|
|
146
153
|
return;
|
|
147
154
|
}
|
|
148
155
|
|
|
156
|
+
console.log('check models');
|
|
157
|
+
|
|
158
|
+
|
|
149
159
|
// Do not fetch if the modelValue is the same as the local models
|
|
150
160
|
|
|
151
161
|
const ids = props.modelValue.map((id: number | string) => id.toString());
|
|
@@ -156,6 +166,8 @@ function fetchModels() {
|
|
|
156
166
|
return;
|
|
157
167
|
}
|
|
158
168
|
|
|
169
|
+
console.log('fetch models');
|
|
170
|
+
|
|
159
171
|
http
|
|
160
172
|
.get(props.showRouteUrl(ids))
|
|
161
173
|
.then((response: AxiosResponse) => {
|