mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 05:07:56 +00:00
Fix view bar details missing ObjectFilterDropdownComponentInstanceContext (#7598)
Fix view bar details missing ObjectFilterDropdownComponentInstanceContext
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
|
|
||||||
|
import { ObjectFilterDropdownComponentInstanceContext } from '@/object-record/object-filter-dropdown/states/contexts/ObjectFilterDropdownComponentInstanceContext';
|
||||||
import { ObjectFilterDropdownScopeInternalContext } from './scope-internal-context/ObjectFilterDropdownScopeInternalContext';
|
import { ObjectFilterDropdownScopeInternalContext } from './scope-internal-context/ObjectFilterDropdownScopeInternalContext';
|
||||||
|
|
||||||
type ObjectFilterDropdownScopeProps = {
|
type ObjectFilterDropdownScopeProps = {
|
||||||
@@ -12,10 +13,14 @@ export const ObjectFilterDropdownScope = ({
|
|||||||
filterScopeId,
|
filterScopeId,
|
||||||
}: ObjectFilterDropdownScopeProps) => {
|
}: ObjectFilterDropdownScopeProps) => {
|
||||||
return (
|
return (
|
||||||
|
<ObjectFilterDropdownComponentInstanceContext.Provider
|
||||||
|
value={{ instanceId: filterScopeId }}
|
||||||
|
>
|
||||||
<ObjectFilterDropdownScopeInternalContext.Provider
|
<ObjectFilterDropdownScopeInternalContext.Provider
|
||||||
value={{ scopeId: filterScopeId }}
|
value={{ scopeId: filterScopeId }}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</ObjectFilterDropdownScopeInternalContext.Provider>
|
</ObjectFilterDropdownScopeInternalContext.Provider>
|
||||||
|
</ObjectFilterDropdownComponentInstanceContext.Provider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user