Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix attempt - Removal of deleted content from private list #3030

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ui/component/claimMenuList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ import ClaimPreview from './view';

const select = (state, props) => {
const { uri } = props;
const claim = selectClaimForUri(state, uri, false);
// This is used to handle deleted content in lists
const placeholderForDeletedClaim = {
canonical_url: uri,
permanent_url: uri,
value_type: 'deleted',
};
const claim = selectClaimForUri(state, uri, false) || placeholderForDeletedClaim;
const collectionId = props.collectionId;
const repostedClaim = claim?.reposted_claim;
const isRepost = Boolean(claim?.reposted_claim || claim?.value?.claim_hash);
Expand Down
Loading
Loading