File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -90,21 +90,20 @@ def merge_props(shared_props, props)
90
90
end
91
91
92
92
def computed_props
93
+ # rubocop:disable Style/MultilineBlockChain
93
94
merge_props ( shared_data , props )
94
- # Always keep errors in the props
95
- . then do |merged_props |
95
+ . then do |merged_props | # Always keep errors in the props
96
96
if merged_props . key? ( :errors ) && !merged_props [ :errors ] . is_a? ( BaseProp )
97
97
errors = merged_props [ :errors ]
98
98
merged_props [ :errors ] = InertiaRails . always { errors }
99
99
end
100
100
merged_props
101
101
end
102
- # Internal hydration/filtering
103
- . then { |props | deep_transform_props ( props ) }
104
- # Apply user-defined prop transformer
105
- . then { |props | configuration . prop_transformer ( props : props ) }
106
- # Add meta tags last (never transformed)
107
- . tap { |props | props [ :_inertia_meta ] = meta_tags if meta_tags . present? }
102
+ . then { |props | deep_transform_props ( props ) } # Internal hydration/filtering
103
+ . then { |props | configuration . prop_transformer ( props : props ) } # Apply user-defined prop transformer
104
+ . tap { |props | props [ :_inertia_meta ] = meta_tags if meta_tags . present? } # Add meta tags last (never transformed)
105
+
106
+ # rubocop:enable Style/MultilineBlockChain
108
107
end
109
108
110
109
def page
You can’t perform that action at this time.
0 commit comments