Fix view bar details missing ObjectFilterDropdownComponentInstanceContext (#7598)

Fix view bar details missing
ObjectFilterDropdownComponentInstanceContext
This commit is contained in:
Lucas Bordeau 2024-10-11 16:38:06 +02:00 committed by GitHub
parent e2179a7911
commit f15c5ff52f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
);
};