mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
fix(react/dialogs): bulk actions not working in search notes
This commit is contained in:
@@ -19,6 +19,7 @@ import bulkActionService from "../../services/bulk_action.js";
|
||||
import { Dropdown } from "bootstrap";
|
||||
import type FNote from "../../entities/fnote.js";
|
||||
import type { AttributeType } from "../../entities/fattribute.js";
|
||||
import { renderReactWidget } from "../react/ReactBasicWidget.jsx";
|
||||
|
||||
const TPL = /*html*/`
|
||||
<div class="search-definition-widget">
|
||||
@@ -306,7 +307,7 @@ export default class SearchDefinitionWidget extends NoteContextAwareWidget {
|
||||
|
||||
const actions = bulkActionService.parseActions(this.note);
|
||||
const renderedEls = actions
|
||||
.map((action) => action.render())
|
||||
.map((action) => renderReactWidget(this, action.doRender()))
|
||||
.filter((e) => e) as JQuery<HTMLElement>[];
|
||||
|
||||
this.$actionOptions.empty().append(...renderedEls);
|
||||
|
||||
Reference in New Issue
Block a user