Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #88 from sameersecond/master
Browse files Browse the repository at this point in the history
Fixed bug while editing products in products list
  • Loading branch information
roopeshsn authored Oct 9, 2022
2 parents 54b2b78 + 7979d4e commit 807ab11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/seeder.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Carousel = require('./models/carouselModel')
const Category = require('./models/categoryModel')
const Product = require('./models/productModel')
const Order = require('./models/orderModel')
const connectDB = require('./config/db')
const { connectDB } = require('./config/db')

dotenv.config()

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/reducers/productReducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const productDetailsReducer = (state = { product: {} }, action) => {
case PRODUCT_DETAILS_FAIL:
return { loading: false, error: action.payload }
case PRODUCT_DETAILS_RESET:
return {}
return {product: {}}
default:
return state
}
Expand Down

0 comments on commit 807ab11

Please sign in to comment.