New edit and delete logs
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 1bb1904..96cd068 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -471,8 +471,12 @@
if (child.type === ComponentType.Button) {
obj.style = child.style;
obj.label = child.label ?? "";
- } else if (child.type > 2) {
- // FIXME: Can we write this more clearly to make it obvious what we mean by 2 here?
+ } else if (
+ child.type === ComponentType.StringSelect ||
+ child.type === ComponentType.UserSelect ||
+ child.type === ComponentType.ChannelSelect ||
+ child.type === ComponentType.RoleSelect
+ ) {
obj.placeholder = child.placeholder ?? "";
}
return obj;