Skip to content

Commit

Permalink
fix(msg transform): wrong validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed Jan 10, 2025
1 parent 3f1d009 commit 30dc4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/Rule/transform/useMessageTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export const useMessageTransformForm = (): UseMessageTransformFormReturn => {
return true
}
return !(
outType === MESSAGE_TYPE_NONE && [MESSAGE_TYPE_NONE, SchemaRegistryType.JSON].includes(inType)
inType === MESSAGE_TYPE_NONE && [MESSAGE_TYPE_NONE, SchemaRegistryType.JSON].includes(outType)
)
}

Expand Down

0 comments on commit 30dc4d3

Please sign in to comment.