Skip to content

Commit

Permalink
Merge pull request #121 from kkn1125/kkn1125/hotfix
Browse files Browse the repository at this point in the history
[FE][:wrench: FIX]: 일기 공개여부 변경 데이터 누락 현상 수정
  • Loading branch information
kkn1125 authored Aug 8, 2022
2 parents 1f6ea71 + 70b173a commit a04db6e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/src/models/PModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class PModel {
case "updates":
break;
default:
if (value) {
if (value !== null) {
formData.append(column, value);
}
break;
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/src/pages/Diary/WriteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function WriteForm() {

const diary = new Diary();
diary.getResponseData(values as unknown as Diary);

console.log(diary)
const diaryFormData = diary.makeFormData();
let diaryId;

Expand Down

0 comments on commit a04db6e

Please sign in to comment.