File tree Expand file tree Collapse file tree
packages/web/app/src/components/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' hive ' : patch
3+ ---
4+
5+ Fix schema version browser history navigation.
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ const TargetLayoutQuery = graphql(`
6767 viewerCanViewLaboratory
6868 viewerCanViewAppDeployments
6969 viewerCanAccessSettings
70+ latestSchemaVersion {
71+ id
72+ }
7073 }
7174 }
7275 }
@@ -103,6 +106,7 @@ export const TargetLayout = ({
103106 const currentOrganization = query . data ?. organization ;
104107 const currentProject = query . data ?. organization ?. project ;
105108 const currentTarget = query . data ?. organization ?. project ?. target ;
109+ const latestSchemaVersion = query . data ?. organization ?. project ?. target ?. latestSchemaVersion ?. id ;
106110
107111 const isCDNEnabled = query . data ?. isCDNEnabled === true ;
108112
@@ -180,11 +184,12 @@ export const TargetLayout = ({
180184 </ TabsTrigger >
181185 < TabsTrigger variant = "menu" value = { Page . History } asChild >
182186 < Link
183- to = "/$organizationSlug/$projectSlug/$targetSlug/history"
187+ to = "/$organizationSlug/$projectSlug/$targetSlug/history/$versionId "
184188 params = { {
185189 organizationSlug : currentOrganization . slug ,
186190 projectSlug : currentProject . slug ,
187191 targetSlug : currentTarget . slug ,
192+ versionId : latestSchemaVersion ?? '' ,
188193 } }
189194 >
190195 History
You can’t perform that action at this time.
0 commit comments