Skip to content

Commit

Permalink
Merge pull request #92 from CAUCSE/develop
Browse files Browse the repository at this point in the history
[FEAT] 학생회 QA 대비 기능 유지보수 중간 배포 3차
  • Loading branch information
selfishAltruism authored Mar 4, 2024
2 parents 8509cef + 0925949 commit 059d593
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/configs/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ API.interceptors.response.use(

if (
(!localStorage.getItem(storageRefreshKey) &&
config.url !== '/api/v1/users/password/find') ||
config.url !== '/api/v1/users/password/find' &&
config.url !== '/api/v1/users/sign-up') ||
config.url === '/api/v1/users/token/update'
) {
removeRefresh();
Expand Down
3 changes: 1 addition & 2 deletions src/pages/circle/editor/CircleEditorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const CircleEditorPage: React.FC = observer(() => {

useEffect(() => {
if (isEdit && circle) {
methods.setValue('mainImage', circle.mainImage ?? '');
methods.setValue('name', circle.name);
methods.setValue('description', circle.description);
}
Expand All @@ -53,7 +52,7 @@ const CircleEditorPage: React.FC = observer(() => {
<FormProvider {...methods}>
<Header
mini
title="동아리 생성"
title={isEdit ? '동아리 수정' : '동아리 생성'}
withBack={isEdit ? PAGE_URL.Setting : PAGE_URL.SettingRoleManagement}
RightComponent={null}
/>
Expand Down
1 change: 1 addition & 0 deletions src/pages/circle/editor/SubmitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const SubmitButton: React.FC<{ isEdit: boolean }> = observer(({ isEdit })
const onSubmit = useCallback(
async (body: FormBody) => {
let result: StoreAPI, message: string;
console.log(body);

if (isEdit) {
result = (await update(circleId, body)) as unknown as StoreAPI;
Expand Down

0 comments on commit 059d593

Please sign in to comment.