Fix #8968 Fix issue with drag and drop when record group are empty. Happy to discuss the implementation, as it's limited to the `@hello-pangea/dnd` api. --------- Co-authored-by: Charles Bochet <charles@twenty.com>
7 lines
210 B
TypeScript
7 lines
210 B
TypeScript
import { Ref, RefCallback } from 'react';
|
|
import { combineRefs } from '~/utils/combineRefs';
|
|
|
|
export const useCombinedRefs = <T>(
|
|
...refs: (Ref<T> | undefined)[]
|
|
): RefCallback<T> => combineRefs<T>(...refs);
|