fix: remove attributes from loading skeleton (#2796)

This commit is contained in:
Piyush Gupta
2024-06-22 10:52:54 +05:30
committed by GitHub
parent 0bf38aed9f
commit 6c6061a123
@@ -41,7 +41,7 @@ export const PeopleSecondaryNavigation = async ({
label: "Attributes",
href: `/environments/${environmentId}/attributes`,
// hide attributes tab if it's being used in the loading state or if the product's channel is website or link
hidden: !!(!loading && currentProductChannel && currentProductChannel !== "app"),
hidden: loading || !!(currentProductChannel && currentProductChannel !== "app"),
},
];