Skip to content

Commit a753956

Browse files
committed
+changelog-ignore: fix build
1 parent 72c7efd commit a753956

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/jcdcdev.Umbraco.ReadingTime.Client/src/editors/reading-time.editor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ export default class ReadingTimePropertyEditorUi extends UmbElementMixin(LitElem
5656
});
5757

5858
this.consumeContext(UMB_ENTITY_CONTEXT, (context) => {
59-
this.contentKey = context.getUnique() ?? undefined;
59+
this.contentKey = context?.getUnique() ?? undefined;
6060
});
6161

6262
this.consumeContext(UMB_PROPERTY_CONTEXT, (context) => {
63-
this.culture = context.getVariantId()?.culture ?? undefined;
63+
this.culture = context?.getVariantId()?.culture ?? undefined;
6464
});
6565

6666
this.consumeContext(UMB_ACTION_EVENT_CONTEXT, (context) => {
67-
context.addEventListener(UmbRequestReloadStructureForEntityEvent.TYPE, () => {
67+
context?.addEventListener(UmbRequestReloadStructureForEntityEvent.TYPE, () => {
6868
if (!this.initialised) {
6969
return;
7070
}
@@ -91,7 +91,7 @@ export default class ReadingTimePropertyEditorUi extends UmbElementMixin(LitElem
9191
});
9292

9393
this.consumeContext(UMB_CONTENT_PROPERTY_CONTEXT, (context) => {
94-
context.dataType.subscribe((dataType) => {
94+
context?.dataType.subscribe((dataType) => {
9595
this.dataTypeKey = dataType?.unique
9696
}).unsubscribe();
9797
});

src/jcdcdev.Umbraco.ReadingTime.Client/src/repository/reading-time.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {UmbControllerHost} from "@umbraco-cms/backoffice/controller-api";
22
import {UmbDataSourceResponse} from "@umbraco-cms/backoffice/repository";
33
import {UmbControllerBase} from "@umbraco-cms/backoffice/class-api";
4-
import {type GetUmbracoReadingtimeApiData, ReadingTimeResponse} from "../api";
4+
import {ReadingTimeResponse} from "../api";
55
import {IReadingTimeDataSource, ReadingTimeDataSource} from "./reading-time.datasource.ts";
66

77
export class ReadingTimeRepository extends UmbControllerBase {

0 commit comments

Comments
 (0)