File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/web/app/src/components/layouts Expand file tree Collapse file tree 2 files changed +11
-1
lines changed 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(`
67
67
viewerCanViewLaboratory
68
68
viewerCanViewAppDeployments
69
69
viewerCanAccessSettings
70
+ latestSchemaVersion {
71
+ id
72
+ }
70
73
}
71
74
}
72
75
}
@@ -103,6 +106,7 @@ export const TargetLayout = ({
103
106
const currentOrganization = query . data ?. organization ;
104
107
const currentProject = query . data ?. organization ?. project ;
105
108
const currentTarget = query . data ?. organization ?. project ?. target ;
109
+ const latestSchemaVersion = query . data ?. organization ?. project ?. target ?. latestSchemaVersion ?. id ;
106
110
107
111
const isCDNEnabled = query . data ?. isCDNEnabled === true ;
108
112
@@ -180,11 +184,12 @@ export const TargetLayout = ({
180
184
</ TabsTrigger >
181
185
< TabsTrigger variant = "menu" value = { Page . History } asChild >
182
186
< Link
183
- to = "/$organizationSlug/$projectSlug/$targetSlug/history"
187
+ to = "/$organizationSlug/$projectSlug/$targetSlug/history/$versionId "
184
188
params = { {
185
189
organizationSlug : currentOrganization . slug ,
186
190
projectSlug : currentProject . slug ,
187
191
targetSlug : currentTarget . slug ,
192
+ versionId : latestSchemaVersion ?? '' ,
188
193
} }
189
194
>
190
195
History
You can’t perform that action at this time.
0 commit comments