fix: auto scroll on enter

This commit is contained in:
Yifei Zhang
2023-03-30 17:04:32 +00:00
parent 7783545bff
commit 802ea20ec4
2 changed files with 2 additions and 5 deletions

View File

@@ -27,8 +27,7 @@ export const useUpdateStore = create<UpdateStore>()(
try {
const data = await (await fetch(FETCH_TAG_URL)).json();
const sha = data[0].name as string;
const remoteId = sha.substring(0, 7);
const remoteId = data[0].name as string;
set(() => ({
lastUpdate: Date.now(),
remoteId,