fix(skill): return raw content as fallback for non-JSON file content

When file content is not in JSON format (e.g., newly uploaded files),
return the raw content instead of empty string to ensure files display
correctly.
This commit is contained in:
yyh
2026-01-19 12:55:22 +08:00
parent 4bd05ed96e
commit a922e844eb

View File

@ -106,9 +106,7 @@ export const useGetAppAssetFileContent = (appId: string, nodeId: string) => {
return result
}
catch {
return {
content: '',
}
return { content: data.content }
}
},
enabled: !!appId && !!nodeId,