Skip to content

Commit

Permalink
fix(frontend): hide hidden entities from trash
Browse files Browse the repository at this point in the history
  • Loading branch information
thesophiaxu committed Feb 18, 2022
1 parent 0c75477 commit 340aa43
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function TrashView() {
React.useEffect(() => {
const subsId = getRandomInt();
tabContext.subscribeToQuery(
'(func: type(Deleted)) {uid type { <unigraph.id> } }',
'(func: type(Deleted)) {uid type { <unigraph.id> } _hide }',
(res: any[]) => {
setTotalDeleted(buildGraph(res));
},
Expand All @@ -33,7 +33,6 @@ export function TrashView() {
window.unigraph.deleteObject(uids, true);
}}
compact
defaultFilter={[]}
context={{ uid: 'Trash' }}
/>
);
Expand Down

0 comments on commit 340aa43

Please sign in to comment.