xuang7 commented on code in PR #4117:
URL: https://github.com/apache/texera/pull/4117#discussion_r2663147922


##########
frontend/src/app/hub/component/browse-section/browse-section.component.ts:
##########
@@ -89,4 +89,12 @@ export class BrowseSectionComponent implements OnInit, 
OnChanges {
       throw new Error("Unexpected type in DashboardEntry.");
     }
   }
+
+  getCoverImage(entity: DashboardEntry): string {
+    if (entity.type === "dataset" && entity.coverImageUrl) {
+      const fullPath = 
`${entity.ownerEmail}/${entity.name}/${entity.coverImageUrl}`;

Review Comment:
   Validation is implemented on the backend.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to