Skip to content

Commit 65d0362

Browse files
committed
feat(Readme): ensure footer.md is only processed for non-text file types
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
1 parent 2aef832 commit 65d0362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/home/Readme.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export function Readme(props: {
5555
// automatically find the file with the same name in related as readme
5656
if (
5757
objStore.state === State.File &&
58+
objStore.obj.type !== ObjType.TEXT &&
5859
props.files.includes("footer.md") &&
5960
objStore.related.length > 0
6061
) {

0 commit comments

Comments
 (0)