Skip to content

Commit fae897b

Browse files
committed
ui: Fix form updates on URL change.
1 parent 7e35ee3 commit fae897b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

interface/ui/src/views/codecs/EditCodec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function EditCodec() {
7575
}
7676
/>
7777
<Card>
78-
<CodecForm update initialValues={codec} onFinish={onFinish} />
78+
<CodecForm update key={codec.getFile()} initialValues={codec} onFinish={onFinish} />
7979
</Card>
8080
</Space>
8181
);

interface/ui/src/views/devices/EditDevice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function EditDevice() {
7474
}
7575
/>
7676
<Card>
77-
<DeviceForm update initialValues={device} onFinish={onFinish} />
77+
<DeviceForm update key={device.getFile()} initialValues={device} onFinish={onFinish} />
7878
</Card>
7979
</Space>
8080
);

interface/ui/src/views/profiles/EditProfile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function EditProfile() {
7474
}
7575
/>
7676
<Card>
77-
<ProfileForm update initialValues={profile} onFinish={onFinish} />
77+
<ProfileForm update key={profile.getFile()} initialValues={profile} onFinish={onFinish} />
7878
</Card>
7979
</Space>
8080
);

0 commit comments

Comments
 (0)