Add edit user_type to user (#209)

This commit is contained in:
Dirk Klimpel
2023-01-16 12:37:30 +01:00
committed by GitHub
parent 67066a1ba7
commit e787b0a940
5 changed files with 32 additions and 13 deletions

View File

@@ -298,7 +298,8 @@ const resourceMap = {
function filterNullValues(key, value) {
// Filtering out null properties
if (value === null) {
// to reset user_type from user, it must be null
if (value === null && key !== "user_type") {
return undefined;
}
return value;