Skip to content

Commit

Permalink
removing reset on product dialog close
Browse files Browse the repository at this point in the history
  • Loading branch information
edmdz committed Jul 16, 2024
1 parent e2854e1 commit 27dbf71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/pages/Products/ProductDialog/ProductDialogContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const ProductDialogProvider = ({ children }) => {
}, [selectedProduct]);

const resetState = () => {
setActiveStep(0);
setSelectedProduct(null);
setIsEditable(false);
setProduct(new Product({}));
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Products/ProductsContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export const ProductsProvider = ({ children }) => {
const [loading, setLoading] = useState(false);

const handleItemSelect = (item, type) => {
setSearchTerm('');

switch (type) {
case Screens.BRANDS:
setSelectedBrand(item);
Expand Down

0 comments on commit 27dbf71

Please sign in to comment.