소스 검색

:bug: recommend poster related product id

zhanghe 6 년 전
부모
커밋
007cf4c127
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/routes/Frontend/Recommend/RecommendPoster.js

+ 2 - 2
src/routes/Frontend/Recommend/RecommendPoster.js

@@ -162,8 +162,8 @@ export default class RecommendPosterEditPage extends Component {
     const originalData = [...this.props.merchant.posterList];
     const newData = originalData.map((data) => {
       if (flag === 'product' && data.id === currentEditPosterId) {
-        const { id, name, code, type } = rows[0];
-        return { ...data, type, name, code, pid: id };
+        const { pid, name, code, type } = rows[0];
+        return { ...data, type, name, code, pid };
       }
       if (flag === 'resource' && data.id === currentEditPosterId) {
         const { path } = rows[0];