Skip to content

Commit

Permalink
fixed the weird null issue with media files
Browse files Browse the repository at this point in the history
  • Loading branch information
ushahidlee committed Nov 21, 2024
1 parent a43cc95 commit 370ef0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class PostPreviewComponent implements OnInit, OnChanges {
if (changes['post']) {
this.allowed_privileges = this.post?.allowed_privileges ?? '';

if (this.post.post_media) {
if (this.post.post_media && this.post.post_media.value.value) {
this.mediaService.getById(this.post.post_media.value.value).subscribe({
next: (media) => {
this.media = media.result;
Expand Down

0 comments on commit 370ef0b

Please sign in to comment.