@makolabs/ripple 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -175,11 +175,13 @@
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
function handleRoleChange(roleValue: string) {
|
|
178
|
-
formData.role = roleValue;
|
|
179
178
|
const role = roles?.find((r: Role) => r.value === roleValue);
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
// Reassign entire formData object to ensure reactivity
|
|
180
|
+
formData = {
|
|
181
|
+
...formData,
|
|
182
|
+
role: roleValue,
|
|
183
|
+
permissions: role ? [...role.permissions] : []
|
|
184
|
+
};
|
|
183
185
|
}
|
|
184
186
|
|
|
185
187
|
async function handleRegenerateApiKey() {
|