Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox committed Sep 6, 2023
1 parent e79ba73 commit c823af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react-components/room/object-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function isPlayer(object) {
export function getObjectUrl(object) {
let url;
if (shouldUseNewLoader()) {
const urlSid = MediaInfo.accessibleUrl[object.el];
const urlSid = MediaInfo.accessibleUrl[object.el.eid];
url = APP.getString(urlSid);
} else {
const mediaLoader = object.el.components["media-loader"];
Expand Down Expand Up @@ -135,7 +135,7 @@ export function useGoToSelectedObject(scene, object) {
export function useRemoveObject(hubChannel, scene, object) {
const removeObject = useCallback(() => {
if (shouldUseNewLoader()) {
deleteTheDeletableAncestor(APP.world, object.el);
deleteTheDeletableAncestor(APP.world, object.el.eid);
} else {
removeNetworkedObject(scene, object.el);
}
Expand Down

0 comments on commit c823af5

Please sign in to comment.