@innertia-solutions/nuxt-theme-spark 0.1.89 → 0.1.90
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.
|
@@ -74,12 +74,13 @@ watch(previewRow, (row) => {
|
|
|
74
74
|
else sessionStorage.removeItem(previewCacheKey.value)
|
|
75
75
|
})
|
|
76
76
|
|
|
77
|
-
// When data reloads, update previewRow with fresh data
|
|
77
|
+
// When data reloads, update previewRow with fresh data — close silently if deleted
|
|
78
78
|
const handleLoaded = (res) => {
|
|
79
79
|
emit('loaded', res)
|
|
80
80
|
if (previewRow.value && Array.isArray(res?.data)) {
|
|
81
81
|
const fresh = res.data.find(r => r.id === previewRow.value.id)
|
|
82
82
|
if (fresh) previewRow.value = fresh
|
|
83
|
+
else closePreview()
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|