Explorar el Código

Update README.md

Garrett Johnson hace 4 años
padre
commit
ac630bfeca
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      README.md

+ 6 - 1
README.md

@@ -196,7 +196,12 @@ if ( intersects.length ) {
 		// Log the batch data
 		const batchTable = batchTableObject.batchTable;
 		const hoveredBatchid = batchidAttr.getX( face.a );
-		console.log( batchTable.getData( 'BatchTableKey' )[ hoveredBatchid ] );
+		const batchData = batchTable.getData( 'BatchTableKey' );
+		if ( batchData ) {
+
+			console.log( batchData[ hoveredBatchid ] );
+
+		}
 
 	}