diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx b/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx index 98256e8cc..a48c37612 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx +++ b/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx @@ -40,9 +40,11 @@ function RuleTypeSelect(props) { } function RuleOptions() { - const { type, options } = ArrayTable.useRecord(); - const ruleType = RuleTypes[type]; const compile = useCompile(); + const { values } = useForm(); + const index = ArrayTable.useIndex(); + const { type, options } = values.patterns[index]; + const ruleType = RuleTypes[type]; return (