Explorar o código

Update README.md

Garrett Johnson %!s(int64=5) %!d(string=hai) anos
pai
achega
ac630bfeca
Modificáronse 1 ficheiros con 6 adicións e 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 ] );
+
+		}
 
 	}