Handle relations for filters (#13654)
- Refacto variable dropdown so it can display both objects and fields - we do not filter on object name anymore to simplify the code - add relation handler in filters https://github.com/user-attachments/assets/e4f03f11-45cb-4d3f-b628-e996129dd996
This commit is contained in:
+2
-1
@@ -222,7 +222,8 @@ export const FormSingleRecordPicker = ({
|
||||
instanceId={variablesDropdownId}
|
||||
disabled={disabled}
|
||||
onVariableSelect={handleVariableTagInsert}
|
||||
objectNameSingularToSelect={objectNameSingular}
|
||||
shouldDisplayRecordObjects={true}
|
||||
shouldDisplayRecordFields={false}
|
||||
/>
|
||||
)}
|
||||
</FormFieldInputRowContainer>
|
||||
|
||||
+2
-1
@@ -3,5 +3,6 @@ export type VariablePickerComponent = React.FC<{
|
||||
disabled?: boolean;
|
||||
multiline?: boolean;
|
||||
onVariableSelect: (variableName: string) => void;
|
||||
objectNameSingularToSelect?: string;
|
||||
shouldDisplayRecordObjects?: boolean;
|
||||
shouldDisplayRecordFields?: boolean;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user