Alternative web application for the pdsadmin command
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

アカウント新規作成時は1件多くリロードする (#36)

authored by mkizka.dev and committed by

GitHub b85c15ce a8fbb70f

+3 -3
+2 -2
src/atoms/account-list.ts
··· 71 71 export const useReloadRepositories = () => { 72 72 const accountList = useAccountList(); 73 73 const initRepositories = useInitRepositories(); 74 - return async () => { 74 + return async (offset: number = 0) => { 75 75 if (!accountList.repos) { 76 76 throw new Error("Repositories are not initialized"); 77 77 } 78 - await initRepositories(accountList.repos.length); 78 + await initRepositories(accountList.repos.length + offset); 79 79 }; 80 80 };
+1 -1
src/components/modal/body/create-account.tsx
··· 52 52 }); 53 53 closeModal(); 54 54 toast.success(t("modal.create-account.toast")); 55 - await reloadRepos(); 55 + await reloadRepos(1); 56 56 } catch (error) { 57 57 // eslint-disable-next-line no-console 58 58 console.error(error);