Skip to content

Commit 5d0dec2

Browse files
committed
fixed isolate component after merging
1 parent ac16725 commit 5d0dec2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/concepts/matestack/ui/core/page/page.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def show(component_key=nil, only_page=false)
7474
prepare
7575
return resolve_isolated_component(component_key) if !component_key.nil? && component_key.include?("isolate")
7676

77-
7877
response
7978

8079
render_mode = nil
@@ -133,7 +132,7 @@ def resolve_isolated_component component_key
133132
isolated_block = self.send(isolated_scope_method)
134133
end
135134
nodes = Matestack::Ui::Core::PageNode.build(
136-
self, nil, &isolated_block
135+
self, nil, context[:params], &isolated_block
137136
)
138137
node = nodes.dig(*keys_array.drop(2))
139138
cell = to_cell(component_key, node["component_name"], node["config"], node["argument"], node["components"], node["included_config"], node["cached_params"])

app/lib/matestack/ui/core/page_node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def method_missing meth, *args, &block
5858
isolated_block = @page_instance.send(args.first)
5959
end
6060
@hash[current_node]["components"] = PageNode.build(
61-
@page_instance, nil, &isolated_block
61+
@page_instance, nil, @url_params, &isolated_block
6262
)
6363
@hash[current_node]["argument"] = args.first
6464
@hash[current_node]["cached_params"] = args.second[:cached_params] if args.second.present?

0 commit comments

Comments
 (0)