From ea87593061c81c09a65601bb1338cb6392f118ce Mon Sep 17 00:00:00 2001 From: Adam Weston Date: Tue, 7 May 2024 12:55:39 -0400 Subject: [PATCH] pass uuid to viewData for scoping inside block if necessary --- packages/forms/resources/views/components/builder.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/forms/resources/views/components/builder.blade.php b/packages/forms/resources/views/components/builder.blade.php index be1176e849f..d5f262e2e33 100644 --- a/packages/forms/resources/views/components/builder.blade.php +++ b/packages/forms/resources/views/components/builder.blade.php @@ -211,7 +211,7 @@ class="absolute inset-0 rotate-180 transition" 'pointer-events-none' => ! $hasInteractiveBlockPreviews(), ]) > - {{ $item->getParentComponent()->viewData($item->getRawState())->renderPreview() }} + {{ $item->getParentComponent()->viewData(['id' => $uuid, ...$item->getRawState()])->renderPreview() }} @if (! $hasInteractiveBlockPreviews())