Skip to content

Build your personal knowledge base with Trilium Notes

fix(bulk_actions): deleting a bulk action would execute all bulk actions

Elian Doran6fc5aa0090d3
diff --git a/apps/client/src/widgets/react/HelpRemoveButtons.tsx b/apps/client/src/widgets/react/HelpRemoveButtons.tsx
index 7eda18b971..79c0a138f7 100644
--- a/apps/client/src/widgets/react/HelpRemoveButtons.tsx
+++ b/apps/client/src/widgets/react/HelpRemoveButtons.tsx
@@ -14,17 +14,20 @@ export default function HelpRemoveButtons({ help, removeText, onRemove }: HelpRe
{help && <>
<Dropdown
className="help-dropdown"
- buttonClassName="bx bx-help-circle icon-action"
+ buttonClassName="bx bx-help-circle icon-action"
hideToggleArrow
>{help}</Dropdown>
{" "}
- </>}
+ </>}
<ActionButton
icon="bx bx-x"
className="search-option-del"
text={removeText ?? ""}
- onClick={onRemove}
+ onClick={(e) => {
+ e.preventDefault();
+ onRemove?.();
+ }}
/>
</td>
);
-}
\ No newline at end of file
+}