remove pointless ./ prefix

This commit is contained in:
Boy132 2025-09-05 14:11:29 +02:00
parent 5b362208e1
commit ed7fd702c9

View File

@ -193,7 +193,7 @@ class ListFiles extends ListRecords
->required() ->required()
->live(), ->live(),
Placeholder::make('new_location') Placeholder::make('new_location')
->content(fn (Get $get, File $file) => resolve_path('./' . join_paths($this->path, $get('location') ?? '/', $file->name))), ->content(fn (Get $get, File $file) => resolve_path(join_paths($this->path, $get('location') ?? '/', $file->name))),
]) ])
->action(function ($data, File $file) { ->action(function ($data, File $file) {
$location = $data['location']; $location = $data['location'];
@ -353,7 +353,7 @@ class ListFiles extends ListRecords
->required() ->required()
->live(), ->live(),
Placeholder::make('new_location') Placeholder::make('new_location')
->content(fn (Get $get) => resolve_path('./' . join_paths($this->path, $get('location') ?? ''))), ->content(fn (Get $get) => resolve_path(join_paths($this->path, $get('location') ?? ''))),
]) ])
->action(function (Collection $files, $data) { ->action(function (Collection $files, $data) {
$location = $data['location']; $location = $data['location'];