docs: updates in recipes (#9472)
Updates in recipes following release changes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user