Fix react two equal nodes error