File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/(dashboard)/status-pages/[id]
components/forms/status-report-update Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ export function Breadcrumb() {
1717
1818 if ( ! statusPage ) return null ;
1919
20- const segment = pathname . split ( "/" ) . pop ( ) ?? "" ;
21- const currentTab = STATUS_PAGE_TABS . find ( ( tab ) => tab . value === segment ) ;
20+ const segments = pathname . split ( "/" ) ;
21+ const currentTab = STATUS_PAGE_TABS . find ( ( tab ) =>
22+ segments . includes ( tab . value ) ,
23+ ) ;
2224
2325 return (
2426 < NavBreadcrumb
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ export function FormStatusReportUpdate({
306306 </ TabsContent >
307307 </ Tabs >
308308 </ FormCardContent >
309- { ! defaultValues && workspace ?. limits [ "status-subscribers" ] ? (
309+ { ! defaultValues ?. date && workspace ?. limits [ "status-subscribers" ] ? (
310310 < >
311311 < FormCardSeparator />
312312 < FormCardContent >
You can’t perform that action at this time.
0 commit comments