Skip to content

Commit 961ea0c

Browse files
justisbjustin808
authored andcommitted
Fix component hash script (#1071)
* Fix string key for component hash
1 parent 77fc623 commit 961ea0c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Changes since last non-beta release.
1010

1111
*Please add entries here for your pull requests that are not yet released.*
1212

13+
#### Fixed
14+
- Fixed issue with component script initialization when using react_component_hash. [PR 1071](https://github.com/shakacode/react_on_rails/pull/1071) by [jblasco3](https://github.com/jblasco3).
15+
1316
### [11.0.2] - 2018-04-24
17+
1418
#### Fixed
1519
- Server rendering error for React on Rails Pro. [PR 1069](https://github.com/shakacode/react_on_rails/pull/1069) by [justin808](https://github.com/justin808).
1620

lib/react_on_rails/react_on_rails_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def react_component_hash(component_name, options = {})
142142
if server_rendered_html.is_a?(Hash)
143143
build_react_component_result_for_server_rendered_hash(
144144
server_rendered_html: server_rendered_html,
145-
component_specification_tag: internal_result["tag"],
145+
component_specification_tag: internal_result[:tag],
146146
console_script: console_script,
147147
render_options: internal_result[:render_options]
148148
)

0 commit comments

Comments
 (0)