Skip to content

Commit 55a72c8

Browse files
authored
pass preloaded data to edit modals (#2036)
1 parent f0cf2be commit 55a72c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/pages/project/vpcs/VpcsPage.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ export function VpcsPage() {
6666
{
6767
label: 'Edit',
6868
onActivate() {
69+
apiQueryClient.setQueryData(
70+
'vpcView',
71+
{ path: { vpc: vpc.name }, query: projectSelector },
72+
vpc
73+
)
6974
navigate(pb.vpcEdit({ ...projectSelector, vpc: vpc.name }), { state: vpc })
7075
},
7176
},

0 commit comments

Comments
 (0)