fix: viewer sandbox lint issue

This commit is contained in:
Kristaps Fabians Geikins
2024-06-12 14:47:08 +03:00
parent 83d8035dc2
commit 089e4f0806
+1 -1
View File
@@ -175,7 +175,7 @@ export default class Sandbox {
this.addViewControls()
this.properties = await this.viewer.getObjectProperties()
})
viewer.on(ViewerEvent.ObjectClicked, (selectionEvent: SelectionEvent) => {
viewer.on(ViewerEvent.ObjectClicked, (selectionEvent) => {
if (selectionEvent && selectionEvent.hits) {
const firstHitNode = selectionEvent.hits[0].node
if (firstHitNode) {