浏览代码

Update README.md

Garrett Johnson 4 年之前
父节点
当前提交
ac630bfeca
共有 1 个文件被更改,包括 6 次插入1 次删除
  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 ] );
+
+		}
 
 	}