Skip to content

Commit

Permalink
Merge pull request #315 from reactioncommerce/fix-kieckhafer-missingF…
Browse files Browse the repository at this point in the history
…unctionImport

fix: import missing function
  • Loading branch information
mikemurray authored Dec 4, 2020
2 parents 20e78bf + 9f7c9d1 commit 1491918
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand All @@ -28,7 +30,7 @@ function ShopBrandMediaManager(props) {
/>
))}
</div>
<Components.MediaUploader canUploadMultiple metadata={metadata} shopId={shop._id} />
<Components.MediaUploader canUploadMultiple metadata={metadata} refetchProduct={refetchProduct} shopId={shop._id} />
</div>
);
}
Expand Down

0 comments on commit 1491918

Please sign in to comment.