mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed node cover reset
This commit is contained in:
parent
10729de375
commit
0c07fb5a45
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ const LabHeroes: FC<IProps> = ({ nodes, isLoading }) => {
|
|||
|
||||
return (
|
||||
<Group className={styles.heroes}>
|
||||
{nodes.slice(0, 7).map(node => (
|
||||
{nodes.slice(0, 10).map(node => (
|
||||
<LabHero node={node} key={node?.id} />
|
||||
))}
|
||||
</Group>
|
||||
|
|
|
@ -10,7 +10,7 @@ export const useNodeCoverImage = (node: INode) => {
|
|||
dispatch(nodeSetCoverImage(node.cover));
|
||||
|
||||
return () => {
|
||||
nodeSetCoverImage(undefined);
|
||||
dispatch(nodeSetCoverImage(undefined));
|
||||
};
|
||||
}, [dispatch, node.cover, node.id]);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue