From 25a9b96730844b6279f709b40f4ee4f2f12c2cec Mon Sep 17 00:00:00 2001 From: Attila Fulop <1162360+fulopattila122@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:34:23 +0300 Subject: [PATCH] Apply suggestions from code review --- src/Http/Controllers/ChannelController.php | 2 +- src/resources/views/channel/show.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/ChannelController.php b/src/Http/Controllers/ChannelController.php index 6d14918..af145e8 100644 --- a/src/Http/Controllers/ChannelController.php +++ b/src/Http/Controllers/ChannelController.php @@ -73,7 +73,7 @@ public function show(Channel $channel) { return view('vanilo::channel.show', $this->processViewData(__METHOD__, [ 'channel' => $channel, - 'channelProducts' => (new ProductSearch())->withinChannel($channel)->withInactiveProducts()->getResults(), + 'products' => (new ProductSearch())->withinChannel($channel)->withInactiveProducts()->getResults(), ])); } diff --git a/src/resources/views/channel/show.blade.php b/src/resources/views/channel/show.blade.php index bd54e12..a8a1b28 100644 --- a/src/resources/views/channel/show.blade.php +++ b/src/resources/views/channel/show.blade.php @@ -15,7 +15,7 @@ {{ __('Assign a product') }} - {!! widget('vanilo::channel.products')->render($channelProducts) !!} + {!! widget('vanilo::channel.products')->render($products) !!} @stop