Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Check undefined to cope with empty string when updating content

Tianzhou Chen8594816fce58
diff --git a/frontend/src/miragejs/routes/index.js b/frontend/src/miragejs/routes/index.js
index 3d0b2da452..a24b2dcc41 100644
--- a/frontend/src/miragejs/routes/index.js
+++ b/frontend/src/miragejs/routes/index.js
@@ -139,7 +139,8 @@ export default function routes() {
}
}
- if (attrs.content) {
+ // Empty string is valid
+ if (typeof attrs.content !== undefined) {
if (task.content != attrs.content) {
changeList.push({
fieldId: TaskBuiltinFieldId.CONTENT,