mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix(skill): tighten cached content typing
This commit is contained in:
@ -157,7 +157,7 @@ export const SkillSaveProvider = ({
|
||||
content: snapshot.content,
|
||||
...(snapshot.metadata ? { metadata: snapshot.metadata } : {}),
|
||||
})
|
||||
const nextData: CachedFileContent = {
|
||||
const nextData: CachedFileContent & { content: string } = {
|
||||
...(existing && typeof existing === 'object' ? existing : {}),
|
||||
content: serialized,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user