mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 12:55:42 +00:00
Updated views component
This commit is contained in:
parent
90cf181681
commit
b58f0a4338
@ -27,7 +27,7 @@ export function Views({as: Component = 'span', slug, className, shouldUpdateView
|
||||
if (shouldUpdateViews) {
|
||||
updateViews(slug).then(r => r);
|
||||
}
|
||||
}, [slug])
|
||||
}, [slug, shouldUpdateViews])
|
||||
|
||||
return (
|
||||
<Component className={className}>
|
||||
|
Loading…
Reference in New Issue
Block a user