diff --git a/client/src/app/(app)/layout.tsx b/client/src/app/(app)/layout.tsx index 093d3486..0f3f8485 100644 --- a/client/src/app/(app)/layout.tsx +++ b/client/src/app/(app)/layout.tsx @@ -29,6 +29,7 @@ import Navigation from "@/containers/navigation"; import Sidebar from "@/containers/sidebar"; import LayoutProviders from "./layout-providers"; +import { getGetWelcomeMessageQueryOptions } from "@/types/generated/welcome-message"; const WelcomeMessage = dynamic(() => import("@/containers/welcome-message"), { ssr: false }); @@ -80,12 +81,16 @@ export default async function AppLayout({ children }: PropsWithChildren) { // Prefetch collaborators await queryClient.prefetchQuery(getGetCollaboratorsQueryOptions()); + await queryClient.prefetchQuery(getGetWelcomeMessageQueryOptions({ + populate: ["video", "image"], + })); + const dehydratedState = dehydrate(queryClient); return ( -
+
{children} diff --git a/client/src/app/(dashboard)/dashboard/datasets/edit/[id]/page.tsx b/client/src/app/(dashboard)/dashboard/datasets/edit/[id]/page.tsx index 8eecd61d..991cb80c 100644 --- a/client/src/app/(dashboard)/dashboard/datasets/edit/[id]/page.tsx +++ b/client/src/app/(dashboard)/dashboard/datasets/edit/[id]/page.tsx @@ -1,4 +1,5 @@ import { Metadata, Viewport } from "next"; + import Link from "next/link"; import { Hydrate, dehydrate } from "@tanstack/react-query"; diff --git a/client/src/components/map/controls/embed/content.tsx b/client/src/components/map/controls/embed/content.tsx index 5579c541..fc5b9527 100644 --- a/client/src/components/map/controls/embed/content.tsx +++ b/client/src/components/map/controls/embed/content.tsx @@ -49,7 +49,7 @@ const EmbedContent = () => { size="sm" onClick={() => { navigator.clipboard.writeText( - `