Skip to content

Commit

Permalink
[QA-1815] Render track actions for deleted tracks in tables (#10409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Shanks authored Nov 11, 2024
1 parent e7c6a80 commit 5e3e216
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/web/src/components/tracks-table/TracksTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,11 @@ export const TracksTable = ({
const renderTrackActions = useCallback(
(cellInfo: TrackCell) => {
const track = cellInfo.row.original
const { is_delete: isDelete } = track
const { isFetchingNFTAccess, hasStreamAccess } = trackAccessMap[
track.track_id
] ?? { isFetchingNFTAccess: false, hasStreamAccess: true }
const isLocked = !isFetchingNFTAccess && !hasStreamAccess

if (isDelete) return null

return (
<Flex
inline
Expand Down

0 comments on commit 5e3e216

Please sign in to comment.