File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import type { UmbApi } from '@umbraco-cms/backoffice/extension-api';
8
8
* The base class for a store that holds an object.
9
9
*/
10
10
export class UmbStoreObjectBase < T > extends UmbContextBase < never > implements UmbApi {
11
- protected _data : UmbObjectState < T | undefined > ;
11
+ protected _data ;
12
12
13
13
constructor ( host : UmbControllerHost , storeAlias : string , initialData ?: T ) {
14
14
super ( host , storeAlias ) ;
15
- this . _data = new UmbObjectState ( initialData ) ;
15
+ this . _data = new UmbObjectState < T | null > ( initialData ?? null ) ;
16
16
}
17
17
18
18
/**
@@ -29,7 +29,7 @@ export class UmbStoreObjectBase<T> extends UmbContextBase<never> implements UmbA
29
29
* Returns the current state of the store
30
30
* @memberof UmbStoreObjectBase
31
31
*/
32
- getState ( ) : T | undefined {
32
+ getState ( ) {
33
33
return this . _data . getValue ( ) ;
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments