Prevent rerendering of journal section when journal item is selected

This commit is contained in:
Gürkan Güran 2023-06-05 23:33:57 +02:00
parent eec133ea62
commit f265b88b69

View file

@ -34,8 +34,9 @@ export class Journal {
@Event() journalItemSelected: EventEmitter<JournalItemSelectedArgs>;
@Watch('model')
async onWorkflowInstanceModelChanged(value: WorkflowJournalModel) {
await this.refresh();
async onWorkflowInstanceModelChanged(oldValue: WorkflowJournalModel, newValue: WorkflowJournalModel) {
if(oldValue.workflowInstance.id != newValue.workflowInstance.id)
await this.refresh();
}
async componentWillLoad(): Promise<void> {