docs: updates in recipes (#9472)

Updates in recipes following release changes
This commit is contained in:
Shahed Nasser
2024-10-07 17:53:53 +00:00
committed by GitHub
parent f3c8f5efef
commit e23d2b9ed7
4 changed files with 9 additions and 8 deletions
@@ -1185,7 +1185,7 @@ const SubscriptionsPage = () => {
</Link>
</Table.Cell>
<Table.Cell>
<Link to={`/orders/${subscription.metadata.main_order_id}`}>
<Link to={`/orders/${subscription.metadata?.main_order_id}`}>
View Order
</Link>
</Table.Cell>
@@ -1363,7 +1363,7 @@ import {
} from "@medusajs/ui"
import { useEffect, useState } from "react"
import { useParams, Link } from "react-router-dom"
import { SubscriptionData } from "../../../types"
import { SubscriptionData } from "../../../types/index.js"
const SubscriptionPage = () => {
const { id } = useParams()
@@ -1394,7 +1394,7 @@ const SubscriptionPage = () => {
</Table.Row>
</Table.Header>
<Table.Body>
{subscription.orders.map((order) => (
{subscription.orders?.map((order) => (
<Table.Row key={order.id}>
<Table.Cell>{order.id}</Table.Cell>
<Table.Cell>{(new Date(order.created_at)).toDateString()}</Table.Cell>