From a7c7ae789b536d6672815a1ded0430b36da7815e Mon Sep 17 00:00:00 2001 From: prateek srivastava Date: Mon, 21 Feb 2022 14:40:35 +0530 Subject: [PATCH] issue #5828 fixed --- packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php b/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php index a3262a8b6..790e051d9 100644 --- a/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php @@ -66,12 +66,6 @@ class ProductDataGrid extends DataGrid /* channel */ $this->channel = core()->getRequestedChannelCode(); - /* finding channel code */ - if ($this->channel !== 'all') { - $this->channel = Channel::query()->find($this->channel); - $this->channel = $this->channel ? $this->channel->code : 'all'; - } - /* parent constructor */ parent::__construct(); }