Explorar el Código

fix(dashboard): Fix navigation to Asset detail from gallery dialog

Michael Bromley hace 4 meses
padre
commit
846ab24acd

+ 4 - 1
packages/dashboard/src/lib/components/shared/asset/asset-gallery.tsx

@@ -360,7 +360,10 @@ export function AssetGallery({
                                                 {formatFileSize(asset.fileSize)}
                                             </p>
                                         )}
-                                        <DetailPageButton id={asset.id} label={<Trans>Edit</Trans>} />
+                                        <DetailPageButton
+                                            href={`/assets/${asset.id}`}
+                                            label={<Trans>Edit</Trans>}
+                                        />
                                     </div>
                                 </CardContent>
                             </Card>