From c0312f0263f2530780aa7543c224cf5b1c8f2b06 Mon Sep 17 00:00:00 2001 From: Takahiro Date: Wed, 6 Sep 2023 18:33:17 +0900 Subject: [PATCH] Clean up --- src/react-components/room/hooks/useObjectList.js | 1 + src/systems/camera-system.js | 1 - src/utils/media-sorting.js | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/react-components/room/hooks/useObjectList.js b/src/react-components/room/hooks/useObjectList.js index 17e523be5f8..5b15d361911 100644 --- a/src/react-components/room/hooks/useObjectList.js +++ b/src/react-components/room/hooks/useObjectList.js @@ -158,6 +158,7 @@ export function ObjectListProvider({ scene, children }) { id: inspectedEl.object3D.id, name: getDisplayString(inspectedEl), type: getMediaType(inspectedEl), + eid: inspectedEl.eid, el: inspectedEl }); } diff --git a/src/systems/camera-system.js b/src/systems/camera-system.js index 7babbcc0c49..988e7132b3e 100644 --- a/src/systems/camera-system.js +++ b/src/systems/camera-system.js @@ -28,7 +28,6 @@ function getInspectableInHierarchyAframe(el) { } inspectable = inspectable.parentNode; } - console.warn("could not find inspectable in hierarchy"); return el.object3D; } diff --git a/src/utils/media-sorting.js b/src/utils/media-sorting.js index a2cf0792d14..f3b237fb996 100644 --- a/src/utils/media-sorting.js +++ b/src/utils/media-sorting.js @@ -1,9 +1,3 @@ -import { faVideo } from "@fortawesome/free-solid-svg-icons/faVideo"; -import { faMusic } from "@fortawesome/free-solid-svg-icons/faMusic"; -import { faImage } from "@fortawesome/free-solid-svg-icons/faImage"; -import { faNewspaper } from "@fortawesome/free-solid-svg-icons/faNewspaper"; -import { faQuestion } from "@fortawesome/free-solid-svg-icons/faQuestion"; -import { faCube } from "@fortawesome/free-solid-svg-icons/faCube"; import { hasComponent } from "bitecs"; import { GLTFModel, MediaImage, MediaInfo, MediaPDF, MediaVideo } from "../bit-components";