mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: set default type of datetime to null
This commit is contained in:
1 parent
aea8c5f2bb
commit
e747adc907
1 file changed
+2
-2
+2
-2
@@ -26,7 +26,7 @@ export const load: LayoutLoad = async ({ params, parent, depends }) => {
|
||||
if (array) {
|
||||
document[key] = document[key].map((n: string) => {
|
||||
if (!n) {
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
return new Date(n).toISOString().slice(0, 23);
|
||||
});
|
||||
@@ -34,7 +34,7 @@ export const load: LayoutLoad = async ({ params, parent, depends }) => {
|
||||
if (document[key]) {
|
||||
document[key] = new Date(document[key]).toISOString().slice(0, 23);
|
||||
} else {
|
||||
document[key] = '';
|
||||
document[key] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user