Skip to content

Commit c907e58

Browse files
committed
fix logic error
1 parent 0720c53 commit c907e58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

react_ujs/dist/react_ujs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react_ujs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ var ReactRailsUJS = {
189189

190190
unmountRoot: function(node) {
191191
var targetRoot = this.findRoot(node);
192-
if (targetRoot) {
192+
if (!targetRoot) {
193193
return;
194194
}
195195

0 commit comments

Comments
 (0)