Skip to content

Commit 6355c71

Browse files
committed
[Live] Use variable - more clear & works if property is null
1 parent 4dad90f commit 6355c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ automatically. Let's add the ``save()`` action to the component::
14771477
$this->addFlash('success', 'Post saved!');
14781478

14791479
return $this->redirectToRoute('app_post_show', [
1480-
'id' => $this->post->getId(),
1480+
'id' => $post->getId(),
14811481
]);
14821482
}
14831483
}

0 commit comments

Comments
 (0)