Skip to content
Snippets Groups Projects
Commit e4956d44 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix column actions for custom expressions

parent ee5468ba
No related merge requests found
......@@ -62,6 +62,10 @@ export const getFieldRefFromColumn = (
column: Column,
fieldId?: ?(FieldId | FieldLiteral) = column.id,
): LocalFieldReference | ForeignFieldReference | FieldLiteral => {
if (column.expression_name) {
return ["expression", column.expression_name];
}
if (fieldId == null) {
throw new Error(
"getFieldRefFromColumn expects non-null fieldId or column with non-null id",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment