diff --git a/frontend/apps/editor3d/run.sh b/frontend/apps/editor3d/run.sh new file mode 100755 index 000000000..97956b69c --- /dev/null +++ b/frontend/apps/editor3d/run.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Get the directory of this script +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# Go up to the root of the repository (assumes src/app/pages is always 3 levels deep) +REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)" + +cd "${REPO_ROOT}" +echo "${REPO_ROOT}" + + +# Run the launch script +./script/desktop/run_desktop_3d.sh \ No newline at end of file diff --git a/frontend/libs/components/gallery-modal/src/lib/gallery-modal.tsx b/frontend/libs/components/gallery-modal/src/lib/gallery-modal.tsx index 7f76f3346..93c828636 100644 --- a/frontend/libs/components/gallery-modal/src/lib/gallery-modal.tsx +++ b/frontend/libs/components/gallery-modal/src/lib/gallery-modal.tsx @@ -128,13 +128,17 @@ export const GalleryModal = React.memo( user_uploads_only: activeTab === "uploads", }); if (response.success && response.data) { + // Print the JSON response for debugging + console.log("Media files response:", response.data); + const newItems = response.data.map((item: any) => ({ id: item.token, label: item.maybe_title || "Image Generation", - thumbnail: item.thumbnail, - fullImage: item.fullImage, + thumbnail: item.media_links.maybe_thumbnail_template, + fullImage: item.media_links.cdn_url, createdAt: item.created_at, })); + console.log("Media files response:", newItems); setGroupedItems(groupItemsByDate(newItems)); } } catch (error) {