Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Delete unused function

Kabiru Mwenja0ab37fd23aa9
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index 47f5153e52a..90c381355bd 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -696,14 +696,6 @@ export default class IndexController extends Controller {
this.getCkEditorInstance()?.setData('');
}
- hideEditorIfEmpty() {
- const ckEditorInstance = this.getCkEditorInstance();
-
- if (ckEditorInstance && ckEditorInstance.getData({ trim: false }).length === 0) {
- this.hideEditor();
- }
- }
-
hideEditor() {
this.clearEditor(); // remove potentially empty lines
this.removeEventListenersFromCkEditorInstance();