mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-12 23:37:00 +08:00
Cb 3592 mobx errors (#1765)
* CB-3592 set default values in constructor * CB-3592 mobx fix
This commit is contained in:
@@ -19,17 +19,17 @@ export class ProcessNotificationController implements IProcessNotificationState
|
||||
message: string | null;
|
||||
|
||||
constructor() {
|
||||
this.error = null;
|
||||
this.title = '';
|
||||
this.message = null;
|
||||
this.status = ENotificationType.Info;
|
||||
|
||||
makeObservable(this, {
|
||||
error: observable,
|
||||
title: observable,
|
||||
status: observable,
|
||||
message: observable,
|
||||
});
|
||||
|
||||
this.error = null;
|
||||
this.title = '';
|
||||
this.message = null;
|
||||
this.status = ENotificationType.Info;
|
||||
}
|
||||
|
||||
init(title: string, message: string | null = null) {
|
||||
|
||||
Reference in New Issue
Block a user