Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: support all types for text field

mertmit055552afee64
diff --git a/packages/nocodb/src/db/field-handler/handlers/long-text/long-text.general.handler.ts b/packages/nocodb/src/db/field-handler/handlers/long-text/long-text.general.handler.ts
index eacde2c47f..df5d7d701c 100644
--- a/packages/nocodb/src/db/field-handler/handlers/long-text/long-text.general.handler.ts
+++ b/packages/nocodb/src/db/field-handler/handlers/long-text/long-text.general.handler.ts
@@ -42,6 +42,8 @@ export class LongTextGeneralHandler extends GenericFieldHandler {
maxLength: NC_MAX_TEXT_LENGTH,
});
}
- return { value: params.value };
+
+ // we return a string all the time to support any input (number, boolean, etc.) on text fields
+ return { value: `${params.value}` };
}
}