Skip to content

Commit

Permalink
fix: consider the placement of the header plugin (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Oct 14, 2022
1 parent 5bd4456 commit f378102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const Header: React.FC<HeaderProps> = ({

const insertPlugins = (itemPosition: HeaderPlacementOrientation, items: JSX.Element[]) => {
plugins.forEach(plugin => {
if (isHeaderIntegration(plugin.integration)) {
if (isHeaderIntegration(plugin.integration) && plugin.integration?.placementOrientation === itemPosition) {
const {
key,
wrappedComponent: WrappedPluginComponent
Expand Down

0 comments on commit f378102

Please sign in to comment.