mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 21:28:25 +08:00
fix: remove early return in DraftAppAssetsInitializer if file tree is empty
This commit is contained in:
parent
ed9f36dd1f
commit
0a4a85ada2
@ -46,8 +46,6 @@ class DraftAppAssetsInitializer(SyncSandboxInitializer):
|
||||
|
||||
def initialize(self, sandbox: Sandbox, ctx: SandboxInitializeContext) -> None:
|
||||
tree = sandbox.attrs.get(AppAssetsAttrs.FILE_TREE)
|
||||
if tree.empty():
|
||||
return
|
||||
|
||||
# --- 1. Run the build pipeline (SkillBuilder compiles .md inline) ---
|
||||
accessor = AppAssetService.get_accessor(ctx.tenant_id, ctx.app_id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user