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