diff --git a/packages/desktop-client/src/components/modals/EditRule.jsx b/packages/desktop-client/src/components/modals/EditRule.jsx index 86044e64c7..8c14b40c1b 100644 --- a/packages/desktop-client/src/components/modals/EditRule.jsx +++ b/packages/desktop-client/src/components/modals/EditRule.jsx @@ -122,7 +122,7 @@ export function OpSelect({ .map(op => [op, formatOp(op, type)]); if (type === 'string' || type === 'id') { - options.splice(options.length / 2, 0, Menu.line); + options.splice(Math.ceil(options.length / 2), 0, Menu.line); } return options; diff --git a/upcoming-release-notes/3037.md b/upcoming-release-notes/3037.md new file mode 100644 index 0000000000..3b29eb65ab --- /dev/null +++ b/upcoming-release-notes/3037.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [ctozlowski] +--- + +Fix the position of the separator in the operator menu when editing a rule \ No newline at end of file