Use resolved accumulator store key for preview actions
This commit is contained in:
@@ -56,6 +56,8 @@ function nodeSummaries() {
|
||||
.map((node) => ({
|
||||
id: node.id,
|
||||
store_key: storeKey(node),
|
||||
widget_store_key: widgetStoreKey(node),
|
||||
resolved_store_key: node._sxapResolvedStoreKey || "",
|
||||
entries: (node._sxapEntries || []).map((entry, index) => ({
|
||||
index: entry.index,
|
||||
id: entry.id,
|
||||
@@ -122,7 +124,11 @@ function outputImages(output) {
|
||||
}
|
||||
|
||||
function storeKey(node) {
|
||||
return String(widget(node, "store_key")?.value || node._sxapResolvedStoreKey || "").trim();
|
||||
return String(node._sxapResolvedStoreKey || widget(node, "store_key")?.value || "").trim();
|
||||
}
|
||||
|
||||
function widgetStoreKey(node) {
|
||||
return String(widget(node, "store_key")?.value || "").trim();
|
||||
}
|
||||
|
||||
function previewLimit(node) {
|
||||
|
||||
Reference in New Issue
Block a user