Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit a5c76d3

Browse files
breaking(#319): user new root folder for the storage
1 parent 68c2185 commit a5c76d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

studio/src/app/components/feed/card/app-feed-card/app-feed-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class AppFeedCard {
8282

8383
private initScreenshot(): Promise<void> {
8484
return new Promise<void>((resolve) => {
85-
if (!this.deck.data.meta.pathname) {
85+
if (!this.deck.data.meta.pathname || !this.deck.data.owner_id || this.deck.data.owner_id === undefined || this.deck.data.owner_id === '') {
8686
resolve();
8787
return;
8888
}
@@ -99,7 +99,7 @@ export class AppFeedCard {
9999
// path[0] = ''
100100
// path[1] = username
101101
// path[2] = presentation name
102-
this.screenshot = `${storageUrl}${path[1]}%2Fpresentations%2F${path[2]}%2Fdeckdeckgo.png?alt=media`;
102+
this.screenshot = `${storageUrl}${this.deck.data.owner_id}%2Fpresentations%2F${path[2]}%2Fdeckdeckgo.png?alt=media`;
103103

104104
resolve();
105105
});

0 commit comments

Comments
 (0)