mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Map null on missing default
This commit is contained in:
parent
609e1adcf0
commit
98dccf6d15
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ class Mapper
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!$rule['required']) {
|
if (!$rule['required']) {
|
||||||
$fields[$escapedKey]['defaultValue'] = $rule['default'] ?? '';
|
$fields[$escapedKey]['defaultValue'] = $rule['default'] ?? null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue