Skip to content

Commit

Permalink
fix!: render the README in the folder first (close alist-org/alist#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 25, 2023
1 parent 966576f commit d0c5b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/Readme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ export const Readme = () => {
) {
return ""
}
if (objStore.readme) {
return objStore.readme
}
if ([State.FetchingMore, State.Folder].includes(objStore.state)) {
const obj = objStore.objs.find(
(item) => item.name.toLowerCase() === "readme.md"
Expand All @@ -31,6 +28,9 @@ export const Readme = () => {
return proxyLink(obj, true)
}
}
if (objStore.readme) {
return objStore.readme
}
return ""
}
)
Expand Down

0 comments on commit d0c5b41

Please sign in to comment.