Transform values for the Query page, removed hardcoded runStatus
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
|
||||
query,
|
||||
schema: z.record(z.any()),
|
||||
tableSchema: querySchemas,
|
||||
transformValues: false,
|
||||
transformValues: true,
|
||||
...tenantOptions,
|
||||
});
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user