File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ def maglev_theme
38
38
@maglev_theme ||= maglev_services . fetch_theme . call
39
39
end
40
40
41
+ def maglev_rendering_mode
42
+ params [ :rendering_mode ] || :editor
43
+ end
44
+
41
45
def record_errors ( exception )
42
46
render ( json : { errors : exception . record . errors } , status : :bad_request )
43
47
end
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ def fetch_stored_sections(group)
61
61
end
62
62
63
63
def fetch_local_sections ( layout_group )
64
+ # TODO: potential bug here, why not relying on group['store'] instead of group['id']? what about page related store?
64
65
content_group = sections_content . find { |group | group [ 'id' ] == layout_group . id }
65
66
66
67
return [ [ ] , 0 ] if content_group . blank?
You can’t perform that action at this time.
0 commit comments