From 9f7c9d15fab896260cb9f3be0534be09f88d20e7 Mon Sep 17 00:00:00 2001 From: Erik Kieckhafer Date: Fri, 21 Aug 2020 16:35:37 -0600 Subject: [PATCH] fix: import missing function Signed-off-by: Erik Kieckhafer --- .../core/dashboard/client/components/ShopBrandMediaManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imports/plugins/core/dashboard/client/components/ShopBrandMediaManager.js b/imports/plugins/core/dashboard/client/components/ShopBrandMediaManager.js index ebba264ff1..e0a307da4d 100644 --- a/imports/plugins/core/dashboard/client/components/ShopBrandMediaManager.js +++ b/imports/plugins/core/dashboard/client/components/ShopBrandMediaManager.js @@ -2,6 +2,7 @@ import React from "react"; import PropTypes from "prop-types"; import { Components, composeWithTracker, registerComponent } from "@reactioncommerce/reaction-components"; import { Media } from "/imports/plugins/core/files/client"; +import useProduct from "/imports/plugins/included/product-admin/client/hooks/useProduct.js"; /** * ShopBrandMediaManager @@ -10,6 +11,7 @@ import { Media } from "/imports/plugins/core/files/client"; */ function ShopBrandMediaManager(props) { const { afterSetBrandImage, brandMedia, shop } = props; + const { refetchProduct } = useProduct(); if (!shop) return null; @@ -28,7 +30,7 @@ function ShopBrandMediaManager(props) { /> ))} - + ); }