function convertStateToGL(state = [], dashContainerModel) {
    const {viewSpecs, containerRef} = dashContainerModel,
        containerSize = {
            width: containerRef.current.offsetWidth,
            height: containerRef.current.offsetHeight
        };

    // Replace any completely empty state with an empty stack, to allow users to add views
    const ret = convertStateToGLInner(state, viewSpecs, containerSize).filter(it => !isNil(it));
    return !ret.length ? [{type: 'stack'}] : ret;
}
/**
 * Convert our serializable state into GoldenLayout config
 */
Convert our serializable state into GoldenLayout config
Convert our serializable state into GoldenLayout config
function convertStateToGL(state = [], dashContainerModel) {
    const {viewSpecs, containerRef} = dashContainerModel,
        containerSize = {
            width: containerRef.current.offsetWidth,
            height: containerRef.current.offsetHeight
        };
    const ret = convertStateToGLInner(state, viewSpecs, containerSize).filter(it => !isNil(it));
    return !ret.length ? [{type: 'stack'}] : ret;
}
function convertStateToGL ( state = [ ] , dashContainerModel ) { const { viewSpecs , containerRef } = dashContainerModel , containerSize = { width : containerRef . current . offsetWidth , height : containerRef . current . offsetHeight } ; const ret = convertStateToGLInner ( state , viewSpecs , containerSize ) . filter ( it => ! isNil ( it ) ) ; return ! ret . length ? [ { type : 'stack' } ] : ret ; }
Convert our serializable state into GoldenLayout config
Convert our serializable state into GoldenLayout config
// Replace any completely empty state with an empty stack, to allow users to add views