We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528685d commit 878dbc6Copy full SHA for 878dbc6
src/api/checkSaveConflict.ts
@@ -15,6 +15,8 @@ export const checkSaveConflict = async ({
15
database
16
}: CheckConflictParams) => {
17
try {
18
+ if (title === "") throw new Error("Title can't be empty")
19
+
20
const notion = await getNotion()
21
const { propertiesIds, tags, tagPropertyIndex, tagIndex } = database
22
const tag = generateTag(tags[tagPropertyIndex], tagIndex)
0 commit comments