mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 20:57:55 +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 ( | ||||||
|     <ObjectFilterDropdownScopeInternalContext.Provider |     <ObjectFilterDropdownComponentInstanceContext.Provider | ||||||
|       value={{ scopeId: filterScopeId }} |       value={{ instanceId: filterScopeId }} | ||||||
|     > |     > | ||||||
|       {children} |       <ObjectFilterDropdownScopeInternalContext.Provider | ||||||
|     </ObjectFilterDropdownScopeInternalContext.Provider> |         value={{ scopeId: filterScopeId }} | ||||||
|  |       > | ||||||
|  |         {children} | ||||||
|  |       </ObjectFilterDropdownScopeInternalContext.Provider> | ||||||
|  |     </ObjectFilterDropdownComponentInstanceContext.Provider> | ||||||
|   ); |   ); | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lucas Bordeau
					Lucas Bordeau