Skip to content

Commit

Permalink
Fallback to [] for referenceType.metadataKeys, see phetsims/phet-io-w…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 28, 2021
1 parent 3ba4968 commit 51a091a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/phet-io/phetioCompareAPIs.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const _phetioCompareAPIs = ( referenceAPI, proposedAPI, _, options ) => {
}

// make sure we have matching metadata keys
const referenceMetadataKeys = referenceType.metadataKeys;
const referenceMetadataKeys = referenceType.metadataKeys || [];
const proposedMetadataKeys = proposedType.metadataKeys;
if ( !_.isEqual( referenceMetadataKeys, proposedMetadataKeys ) ) {
appendProblem( `${typeName} metadata keys changed from ${referenceMetadataKeys.join( ', ' )} to ${proposedMetadataKeys.join( ', ' )}. This may or may not
Expand Down

0 comments on commit 51a091a

Please sign in to comment.