fix: volume data not refreshing when changing selection

This commit is contained in:
Nicolas Meienberger
2025-12-04 18:54:02 +01:00
parent 77f5886110
commit 01127ee9d6
2 changed files with 2 additions and 1 deletions

View File

@@ -312,6 +312,7 @@ export const CreateScheduleForm = ({ initialValues, formId, onSubmit, volume }:
</CardHeader> </CardHeader>
<CardContent> <CardContent>
<VolumeFileBrowser <VolumeFileBrowser
key={volume.id}
volumeName={volume.name} volumeName={volume.name}
selectedPaths={selectedPaths} selectedPaths={selectedPaths}
onSelectionChange={handleSelectionChange} onSelectionChange={handleSelectionChange}

View File

@@ -79,7 +79,7 @@ export default function Backups({ loaderData }: Route.ComponentProps) {
isInProgress={schedule.lastBackupStatus === "in_progress"} isInProgress={schedule.lastBackupStatus === "in_progress"}
/> />
</div> </div>
<CardDescription className="ml-0.5 flex items-center gap-2 mt-2 text-xs"> <CardDescription className="ml-0.5 flex items-center gap-2 text-xs">
<HardDrive className="h-3.5 w-3.5" /> <HardDrive className="h-3.5 w-3.5" />
<span className="truncate">{schedule.volume.name}</span> <span className="truncate">{schedule.volume.name}</span>
<span className="text-muted-foreground"></span> <span className="text-muted-foreground"></span>