Jelajahi Sumber

Update README.md

Garrett Johnson 4 tahun lalu
induk
melakukan
ac630bfeca
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      README.md

+ 6 - 1
README.md

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