fix: prevent customer sidebar from re-rendering
This commit is contained in:
parent
f49b8f4f46
commit
8d1428c399
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ const CustomerProfile = memo(() => {
|
|||
</Breadcrumbs>
|
||||
<div className="flex gap-20">
|
||||
<div className="w-55 flex flex-col gap-6">
|
||||
{!loading && !customerData.isAnonymous && (
|
||||
{!!customerData && !customerData.isAnonymous && (
|
||||
<>
|
||||
<CustomerSidebar
|
||||
isSelected={code => code === clickedItem}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue