mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix: Always return boolean from isNullComponentID
This commit is contained in:
@@ -59,7 +59,7 @@ function deregisterNullComponentID(id) {
|
||||
* @return {boolean} True if the component is rendered to null.
|
||||
*/
|
||||
function isNullComponentID(id) {
|
||||
return nullComponentIdsRegistry[id];
|
||||
return !!nullComponentIdsRegistry[id];
|
||||
}
|
||||
|
||||
var ReactEmptyComponent = {
|
||||
|
||||
Reference in New Issue
Block a user