Skip to content

Commit

Permalink
(fix) Refetch product only on initial render of component
Browse files Browse the repository at this point in the history
Signed-off-by: jrw421 <jessica.wolvington@gmail.com>
  • Loading branch information
jrw421 committed Jan 28, 2021
1 parent 54b05da commit 2549938
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function ProductTagForm() {

useEffect(() => {
refetchProduct();
});
}, []);

if (product && Array.isArray(product.tags.nodes)) {
content = product.tags.nodes.map((tag) => (
Expand Down

0 comments on commit 2549938

Please sign in to comment.