Skip to content

Commit 0d51ed5

Browse files
authored
feat: use new reload action (#105)
1 parent 70e20c1 commit 0d51ed5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Controllers/Assets/TableEditorController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use NotFound\Layout\Elements\LayoutWidget;
2323
use NotFound\Layout\LayoutResponse;
2424
use NotFound\Layout\Responses\Redirect;
25+
use NotFound\Layout\Responses\Reload;
2526
use NotFound\Layout\Responses\Toast;
2627

2728
/**
@@ -138,7 +139,7 @@ public function update(FormDataRequest $request, Table $table, int $recordId, st
138139
if ($newTableRecord) {
139140
$response->addAction(new Redirect('/table/'.$table->url.'/'.$id.'/'));
140141
} else {
141-
// TODO: Refresh page
142+
$response->addAction(new Reload());
142143
}
143144
} else {
144145
// Redirect

0 commit comments

Comments
 (0)