diff --git a/packages/desktop-client/src/components/modals/EditRule.jsx b/packages/desktop-client/src/components/modals/EditRule.jsx
index 86044e64c7575f870bd8ea3ea43541591570e1e2..8c14b40c1b4a4fc848eb78935d10027a46cabc1a 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 0000000000000000000000000000000000000000..3b29eb65ab9d6e125adb03d3a877313d4f8dbe2c
--- /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