mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix default value assignment in Mapper class to handle null cases
This commit is contained in:
parent
14a4bb8828
commit
63a02e11ac
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ class Mapper
|
|||
];
|
||||
|
||||
if (!$rule['required']) {
|
||||
$fields[$escapedKey]['defaultValue'] = $rule['default'];
|
||||
$fields[$escapedKey]['defaultValue'] = $rule['default'] ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue