nuxt-ui-tools 1.27.3 → 1.27.5
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/module.json
CHANGED
|
@@ -219,10 +219,11 @@ function mergeMissingFieldDefaults(target, fields, ctx, parentPath, apiFactory)
|
|
|
219
219
|
}
|
|
220
220
|
if (isArrayField(field)) {
|
|
221
221
|
const path2 = fieldPath(parentPath, field);
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
const current = getPathValue(target, path2);
|
|
223
|
+
const fallback = Array.isArray(current) ? null : resolveFieldDefault(field, ctx, apiFactory?.(path2, field));
|
|
224
|
+
const value = Array.isArray(current) ? current : Array.isArray(fallback) ? fallback : [];
|
|
225
|
+
if (!Array.isArray(current)) {
|
|
226
|
+
setPathValue(target, path2, value);
|
|
226
227
|
}
|
|
227
228
|
for (const [index, item] of value.entries()) {
|
|
228
229
|
if (!isRecord(item)) {
|
|
@@ -74,7 +74,7 @@ const session = useFilterTagSession({
|
|
|
74
74
|
},
|
|
75
75
|
onDismiss: () => emit("dismiss"),
|
|
76
76
|
onOpen: () => {
|
|
77
|
-
isContentReady.value = false;
|
|
77
|
+
if (!props.embedded) isContentReady.value = false;
|
|
78
78
|
initLocalState();
|
|
79
79
|
},
|
|
80
80
|
onSessionClosed: () => emit("sessionClosed"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-tools",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.5",
|
|
4
4
|
"description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
|
|
5
5
|
"homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
|
|
6
6
|
"bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
|