Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove useless error card

dominik-zeglen453311da80a4
diff --git a/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx b/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx
index 3d0d6558c4..0cc199b844 100644
--- a/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx
@@ -5,7 +5,6 @@ import { arrayMove } from "react-sortable-hoc";
import * as placeholderImg from "../../../../images/placeholder255x255.png";
import ActionDialog from "../../../components/ActionDialog";
-import ErrorMessageCard from "../../../components/ErrorMessageCard";
import Messages from "../../../components/messages";
import Navigator from "../../../components/Navigator";
import { WindowTitle } from "../../../components/WindowTitle";
@@ -55,13 +54,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({
displayLoader
variables={{ id }}
>
- {({ data, loading, error }) => {
- if (error) {
- return (
- <ErrorMessageCard message="Something went wrong" />
- );
- }
-
+ {({ data, loading }) => {
const handleDelete = () => {
pushMessage({ text: i18n.t("Product removed") });
navigate(productListUrl());