mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-28 16:06:41 +01:00
added mini version compatiblity for trackedfields ext trigger
This commit is contained in:
@@ -19,7 +19,7 @@ export default function Step1Triggers({
|
||||
extensionObject,
|
||||
setExtensionObject,
|
||||
}: IExtensionModalStepProps) {
|
||||
const { tableState } = useProjectContext();
|
||||
const { tableState, compatibleRowyRunVersion } = useProjectContext();
|
||||
if (!tableState?.columns) return <></>;
|
||||
const columnOptions = Object.values(tableState.columns)
|
||||
.filter((column) => column.type !== FieldType.subTable)
|
||||
@@ -67,7 +67,8 @@ export default function Step1Triggers({
|
||||
}
|
||||
/>
|
||||
{trigger === "update" &&
|
||||
extensionObject.triggers.includes("update") && (
|
||||
extensionObject.triggers.includes("update") &&
|
||||
compatibleRowyRunVersion!({ minVersion: "1.2.4" }) && (
|
||||
<MultiSelect
|
||||
label="Tracked fields (optional)"
|
||||
options={columnOptions}
|
||||
|
||||
Reference in New Issue
Block a user