Skip to content

Commit 181069e

Browse files
committed
Fix : on selected Owner change, select repoName is initialized #175
Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
1 parent 9300396 commit 181069e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/review/FirstContents.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const FirstContents = () => {
5555
const navigate = useNavigate();
5656

5757
useEffect(() => {
58+
setSelectOwner("");
5859
getUserRepoData();
5960
checkTokenValid().then((result) => {
6061
console.log(result);
@@ -69,8 +70,8 @@ export const FirstContents = () => {
6970
(it) => it.owner === selectOwner,
7071
);
7172
const repoNameData = selectedRepoData.repoName || [];
72-
7373
setRepoNameOptions(repoNameData);
74+
setSelectRepoName("");
7475
} else {
7576
setSelectRepoName("");
7677
}

0 commit comments

Comments
 (0)