Allow topics with empty string

We must pass undefined because the server won't accept an empty string.
Undefined will make the server use the default value, which is an empty
string.
This commit is contained in:
Steven Nguyen authored and Torsten Dittmann committed 2024-01-22 15:13:28 +01:00
1 parent d4d09ad9ba
commit 075b7d730c
1 file changed
+4 -4
@@ -1,8 +1,8 @@
<script lang="ts">
import { Submit, trackEvent, trackError } from '$lib/actions/analytics';
import { Modal, CustomId } from '$lib/components';
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
import { CustomId, Modal } from '$lib/components';
import { Pill } from '$lib/elements';
import { InputText, Button, FormList } from '$lib/elements/forms';
import { Button, FormList, InputText } from '$lib/elements/forms';
import { addNotification } from '$lib/stores/notifications';
import { sdk } from '$lib/stores/sdk';
import { ID } from '@appwrite.io/console';
@@ -27,7 +27,7 @@
},
{
name,
description,
description: description || undefined,
topicId: id ?? ID.unique()
}
);