fix issue where alias should be a string

This commit is contained in:
Jacob Overgaard
2023-01-17 11:07:19 +01:00
parent ef68d61ac0
commit f5a407a7b6

View File

@@ -4,10 +4,9 @@ import { UmbControllerInterface } from './controller.interface';
export abstract class UmbController implements UmbControllerInterface {
protected host?: UmbControllerHostInterface;
private _alias?: string;
public get unique() {
return this._alias;
return this._alias ?? UmbController.name;
}
constructor(host: UmbControllerHostInterface, alias?: string) {