Skip to content

Commit

Permalink
[Analytics][Tracker] Feature #3340, add minor fixes for a better perf…
Browse files Browse the repository at this point in the history
…ormance and readability
  • Loading branch information
vahonc authored and rbayet committed Dec 2, 2024
1 parent b6157d0 commit 69ff706
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
/**
* @var Smile\ElasticsuiteAnalytics\Block\Adminhtml\Report\CustomerCompanySelector $block
*/
$companies = $block->getCompaniesList();
?>
<?php if ($block->isCompanyEnabled()): ?>
<?php $companies = $block->getCompaniesList(); ?>
<div class="customer-company-selector">
<label for="company_id"><?= __('Company:') ?></label>
<select id="company_id" name="company_id" class="admin__control-select">
Expand All @@ -29,12 +29,12 @@ $companies = $block->getCompaniesList();
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>

<script type="text/x-magento-init">
{
"*": {
"customerCompanySelector": {}
<script type="text/x-magento-init">
{
"*": {
"customerCompanySelector": {}
}
}
}
</script>
</script>
<?php endif; ?>

0 comments on commit 69ff706

Please sign in to comment.