Skip to content

Commit f5ff2bb

Browse files
Fix issue create media folder throw error (#19854)
Co-authored-by: Lan Nguyen Thuy <[email protected]>
1 parent c318619 commit f5ff2bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Umbraco.Web.UI.Client/src/packages/media/media/audit-log/info-app/media-history-workspace-info-app.element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export class UmbMediaHistoryWorkspaceInfoAppElement extends UmbLitElement {
4242
}
4343

4444
async #requestAuditLogs() {
45-
const unique = this.#workspaceContext?.getUnique();
45+
if (!this.#workspaceContext) return;
46+
47+
const unique = this.#workspaceContext.getUnique();
4648
if (!unique) throw new Error('Media unique is required');
4749

4850
const { data } = await this.#auditLogRepository.requestAuditLog({

0 commit comments

Comments
 (0)