Skip to content

EspoCRM – Open Source CRM Application

Kanban fallback to the first pipeline

Yurii8fe421abb85a
diff --git a/client/src/views/record/kanban.js b/client/src/views/record/kanban.js
index 447944ab68..cfc65f265c 100644
--- a/client/src/views/record/kanban.js
+++ b/client/src/views/record/kanban.js
@@ -496,14 +496,14 @@ class KanbanRecordView extends ListRecordView {
this.currentPipelineId = this.getStorage().get('state', this.buildPipelineIdStorageKey());
- if (!this.currentPipelineId) {
- this.currentPipelineId = this.pipelines[0]?.id ?? null;
- }
-
if (this.currentPipelineId && !this.pipelines.find(it => it.id === this.currentPipelineId)) {
this.currentPipelineId = null;
}
+ if (!this.currentPipelineId) {
+ this.currentPipelineId = this.pipelines[0]?.id ?? null;
+ }
+
this.setPipelineWhere();
this.setupPipelineDropdown();
}