mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 08:34:25 +03:00
launch: filter out metadata for deleted groups
Addresses #3800 through front-end.
This commit is contained in:
parent
0920b83f2d
commit
2a23d7a1e7
@ -76,7 +76,11 @@ export default class LaunchApp extends React.Component {
|
||||
weather={props.weather}
|
||||
/>
|
||||
</Box>
|
||||
<Groups associations={props.associations} invites={props.invites} api={props.api} />
|
||||
<Groups
|
||||
associations={props.associations}
|
||||
groups={props.groups}
|
||||
invites={props.invites}
|
||||
api={props.api} />
|
||||
</Box>
|
||||
<Box
|
||||
position="absolute"
|
||||
|
@ -1,8 +1,6 @@
|
||||
import React from "react";
|
||||
import { Box, Text } from "@tlon/indigo-react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { useLocalStorageState } from "~/logic/lib/useLocalStorageState";
|
||||
import { Associations, Association } from "~/types";
|
||||
import { alphabeticalOrder } from "~/logic/lib/util";
|
||||
import Tile from '../components/tiles/tile';
|
||||
@ -23,6 +21,7 @@ export default function Groups(props: GroupsProps & Parameters<typeof Box>[0]) {
|
||||
}
|
||||
|
||||
const groups = Object.values(associations?.contacts || {})
|
||||
.filter(e => e['group-path'] in props.groups)
|
||||
.sort(sortGroupsAlph);
|
||||
|
||||
const acceptInvite = (invite) => {
|
||||
|
Loading…
Reference in New Issue
Block a user