Function
getDroppableCollectionId
(state: DroppableCollectionState)
Source from the content-addressed store, hash-verified
| 35 | export const DIRECTORY_DRAG_TYPE: symbol = Symbol(); |
| 36 | |
| 37 | export function getDroppableCollectionId(state: DroppableCollectionState): string { |
| 38 | let {id} = droppableCollectionMap.get(state) || {}; |
| 39 | if (!id) { |
| 40 | throw new Error('Droppable item outside a droppable collection'); |
| 41 | } |
| 42 | |
| 43 | return id; |
| 44 | } |
| 45 | |
| 46 | export function getDroppableCollectionRef( |
| 47 | state: DroppableCollectionState |
Tested by
no test coverage detected