mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46: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 (
|
return (
|
||||||
<Group className={styles.heroes}>
|
<Group className={styles.heroes}>
|
||||||
{nodes.slice(0, 7).map(node => (
|
{nodes.slice(0, 10).map(node => (
|
||||||
<LabHero node={node} key={node?.id} />
|
<LabHero node={node} key={node?.id} />
|
||||||
))}
|
))}
|
||||||
</Group>
|
</Group>
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const useNodeCoverImage = (node: INode) => {
|
||||||
dispatch(nodeSetCoverImage(node.cover));
|
dispatch(nodeSetCoverImage(node.cover));
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
nodeSetCoverImage(undefined);
|
dispatch(nodeSetCoverImage(undefined));
|
||||||
};
|
};
|
||||||
}, [dispatch, node.cover, node.id]);
|
}, [dispatch, node.cover, node.id]);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue