Skip to content

Commit 151b8f4

Browse files
committed
fix: the nullable type on inputs.
1 parent 4fbbcdc commit 151b8f4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/email.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export let value: string | null;
88
export let attribute: Models.AttributeUrl;
99
10-
$: nullable = attribute.required ? false : !value;
10+
$: nullable = !attribute.required;
1111
</script>
1212

1313
<InputEmail

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/integer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export let value: number;
88
export let attribute: Models.AttributeInteger;
99
10-
$: nullable = attribute.required ? false : !value;
10+
$: nullable = !attribute.required;
1111
</script>
1212

1313
<InputNumber

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/string.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export let value: string;
88
export let attribute: Models.AttributeString;
99
10-
$: nullable = attribute.required ? false : !value;
10+
$: nullable = !attribute.required;
1111
</script>
1212

1313
{#if attribute.size >= 50}

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/url.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export let value: string | null;
88
export let attribute: Models.AttributeUrl;
99
10-
$: nullable = attribute.required ? false : !value;
10+
$: nullable = !attribute.required;
1111
</script>
1212

1313
<InputURL

0 commit comments

Comments
 (0)