fix analysis order page
This commit is contained in:
@@ -48,18 +48,22 @@ async function OrderConfirmedPage(props: {
|
|||||||
: { data: null },
|
: { data: null },
|
||||||
]);
|
]);
|
||||||
const [{ data: location }, { data: serviceProvider }] = await Promise.all([
|
const [{ data: location }, { data: serviceProvider }] = await Promise.all([
|
||||||
supabaseClient
|
ttoReservation
|
||||||
.schema('medreport')
|
? supabaseClient
|
||||||
.from('connected_online_locations')
|
.schema('medreport')
|
||||||
.select('name,address')
|
.from('connected_online_locations')
|
||||||
.eq('sync_id', ttoReservation.location_sync_id || 0)
|
.select('name,address')
|
||||||
.single(),
|
.eq('sync_id', ttoReservation.location_sync_id || 0)
|
||||||
supabaseClient
|
.single()
|
||||||
.schema('medreport')
|
: { data: null },
|
||||||
.from('connected_online_providers')
|
ttoReservation
|
||||||
.select('email,phone_number,name')
|
? supabaseClient
|
||||||
.eq('id', ttoReservation.clinic_id)
|
.schema('medreport')
|
||||||
.single(),
|
.from('connected_online_providers')
|
||||||
|
.select('email,phone_number,name')
|
||||||
|
.eq('id', ttoReservation.clinic_id)
|
||||||
|
.single()
|
||||||
|
: { data: null },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default function OrderBlock({
|
|||||||
<Trans i18nKey={`orders:status.${analysisOrder.status}`} />
|
<Trans i18nKey={`orders:status.${analysisOrder.status}`} />
|
||||||
</h5>
|
</h5>
|
||||||
<Link
|
<Link
|
||||||
href={`/home/order/${analysisOrder.id}`}
|
href={`/home/order/${medusaOrderId}`}
|
||||||
className="text-small-regular flex items-center justify-between"
|
className="text-small-regular flex items-center justify-between"
|
||||||
>
|
>
|
||||||
<button className="text-ui-fg-subtle hover:text-ui-fg-base flex cursor-pointer gap-x-1">
|
<button className="text-ui-fg-subtle hover:text-ui-fg-base flex cursor-pointer gap-x-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user