mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 21:12:56 +03:00
Merge pull request #3810 from urbit/mp/launch/filter-deleted-groups
launch: filter out metadata for deleted groups
This commit is contained in:
commit
6e71811053
@ -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