Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
let scheduledAt: string;

async function create() {
if (!title?.trim() || !body?.trim()) {
addNotification({
type: 'error',
message: 'Title and message body cannot be empty.'
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
});
return;
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
}
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
try {
const messageId = id || ID.unique();
const fileCompoundId = file ? `${file.bucketId}:${file.$id}` : undefined;
Expand Down