entries cards and undefined error fix

pull/50/head
Tim Pechersky 2021-08-03 21:05:59 +08:00
rodzic de599c8116
commit 82d9a494f3
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -110,7 +110,7 @@ const EntriesNavigation = () => {
newFilterState[0].value === null
) {
setFilterProps(0, {
value: subscriptionsCache.data.subscriptions[0].address,
value: subscriptionsCache?.data?.subscriptions[0]?.address,
});
}
}, [subscriptionsCache, newFilterState, setFilterProps]);
@ -253,7 +253,7 @@ const EntriesNavigation = () => {
onChange={handleAddressChange(idx)}
>
{!subscriptionsCache.isLoading &&
subscriptionsCache.data.subscriptions.map(
subscriptionsCache?.data?.subscriptions.map(
(subscription, idx) => {
return (
<option
@ -318,7 +318,8 @@ const EntriesNavigation = () => {
direction: DIRECTIONS.SOURCE,
condition: CONDITION.EQUAL,
value:
subscriptionsCache.data.subscriptions[0].address,
subscriptionsCache?.data?.subscriptions[0]
?.address,
},
])
}
@ -334,7 +335,8 @@ const EntriesNavigation = () => {
direction: DIRECTIONS.DESTINATION,
condition: CONDITION.EQUAL,
value:
subscriptionsCache.data.subscriptions[0].address,
subscriptionsCache?.data?.subscriptions[0]
?.address,
},
])
}

Wyświetl plik

@ -55,7 +55,6 @@ const StreamEntry = ({ entry, filterCallback, filterConstants }) => {
transition="0.1s"
_hover={{ bg: "secondary.200" }}
flexBasis="50px"
flexGrow={1}
direction="row"
justifySelf="center"
justifyContent="normal"