We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d3021 commit 8564125Copy full SHA for 8564125
polling-app-client/src/components/Dashboard/GroupCreateModal.jsx
@@ -27,14 +27,18 @@ class GroupCreateModal extends Component {
27
throw new Error("응답에 그룹 이름이 없습니다.");
28
}
29
message.success(`그룹 "${data.name}" 생성 완료`);
30
- try {
31
- this.props.onCreated();
+
+ if (this.props.onClose) {
32
this.props.onClose();
33
- } catch (e) {
34
- console.error("후처리 중 오류:", e);
35
36
37
- })
+ setTimeout(() => {
+ window.location.reload();
+ }, 500);
38
+ })
39
40
41
42
.catch(() => {
43
message.error('그룹 생성에 실패했습니다.');
44
});
0 commit comments