Skip to content

Commit

Permalink
feat: set location to none by default as a workaround set EMP-3378
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed Mar 8, 2024
1 parent 3a7b97c commit 48c2140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x-components/src/composables/use-x-bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { PropsWithType } from '../utils/types';
* @returns An object with the `on` and `emit` functions.
*/
export function useXBus(): UseXBusAPI {
const location = inject<FeatureLocation>('location', undefined as any);
const location = inject<FeatureLocation>('location', 'none');

const currentComponent: PrivateExtendedVueComponent | undefined | null =
getCurrentInstance()?.proxy;
Expand Down

0 comments on commit 48c2140

Please sign in to comment.