mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:45:41 +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) {
|
if (shouldUpdateViews) {
|
||||||
updateViews(slug).then(r => r);
|
updateViews(slug).then(r => r);
|
||||||
}
|
}
|
||||||
}, [slug])
|
}, [slug, shouldUpdateViews])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Component className={className}>
|
<Component className={className}>
|
||||||
|
Loading…
Reference in New Issue
Block a user