Transform values for the Query page, removed hardcoded runStatus

This commit is contained in:
Matt Aitken
2025-12-18 12:58:48 +00:00
parent a714de779b
commit 28505a84c2
2 changed files with 1 additions and 6 deletions
@@ -135,7 +135,7 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
query,
schema: z.record(z.any()),
tableSchema: querySchemas,
transformValues: false,
transformValues: true,
...tenantOptions,
});
-5
View File
@@ -169,11 +169,6 @@ function deriveRenderType(
): RenderType {
const lowerName = columnName.toLowerCase();
// Status column with string type → runStatus
if (lowerName === "status" && jsType === "string") {
return "runStatus";
}
// Check for datetime strings
if (jsType === "string" && allStringsAreDates(rows, columnName)) {
return "datetime";