create-puck-app 0.12.1-canary.1c3372b → 0.13.0-canary.10a6025
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -22,7 +22,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
|
|
22
22
|
};
|
23
23
|
|
24
24
|
export const meta: MetaFunction<typeof loader> = ({ data }) => {
|
25
|
-
const title = data?.puckData?.root?.title || "Page";
|
25
|
+
const title = data?.puckData?.root?.props?.title || "Page";
|
26
26
|
|
27
27
|
return [{ title }];
|
28
28
|
};
|
@@ -40,7 +40,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
|
|
40
40
|
};
|
41
41
|
|
42
42
|
export const meta: MetaFunction<typeof loader> = ({ data }) => {
|
43
|
-
const title = data?.initialData?.root?.title || "Untitled page";
|
43
|
+
const title = data?.initialData?.root?.props?.title || "Untitled page";
|
44
44
|
|
45
45
|
return [{ title: `Editing: ${title}` }];
|
46
46
|
};
|