web: Clean up file methods. (#15479)

This commit is contained in:
Teffen Ellis
2025-07-11 00:47:22 +02:00
committed by GitHub
parent 239edace16
commit 198d2a1a8a
12 changed files with 56 additions and 50 deletions

View File

@@ -58,7 +58,7 @@ export class FlowForm extends WithCapabilitiesConfig(ModelForm<Flow, string>) {
}
if (this.can(CapabilitiesEnum.CanSaveMedia)) {
const icon = this.getFormFiles().background;
const icon = this.files().get("background");
if (icon || this.clearBackground) {
await new FlowsApi(DEFAULT_CONFIG).flowsInstancesSetBackgroundCreate({
slug: flow.slug,