allow alias to be undefined
This commit is contained in:
@@ -9,7 +9,7 @@ export class UmbContextConsumerController<T = unknown>
|
||||
implements UmbControllerInterface
|
||||
{
|
||||
public get unique() {
|
||||
return this._contextAlias?.toString();
|
||||
return this._contextAlias.toString();
|
||||
}
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -6,7 +6,7 @@ export abstract class UmbController implements UmbControllerInterface {
|
||||
|
||||
private _alias?: string;
|
||||
public get unique() {
|
||||
return this._alias ?? UmbController.name;
|
||||
return this._alias;
|
||||
}
|
||||
|
||||
constructor(host: UmbControllerHostInterface, alias?: string) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export interface UmbControllerInterface {
|
||||
get unique(): string;
|
||||
get unique(): string | undefined;
|
||||
hostConnected(): void;
|
||||
hostDisconnected(): void;
|
||||
destroy(): void;
|
||||
|
||||
Reference in New Issue
Block a user