import uuidv1 from 'uuid/v1' import socket from '../../socket' import types from '../../types' import actions from '../../actions' import module from './morph.module' export const morph_task = (state, folder) => dispatch => { if (state.a === 'PLACEHOLDER' || state.b === 'PLACEHOLDER') return const task = { module: module.name, activity: 'morph', dataset: state.a, folder_id: folder.id, opt: state, } return actions.queue.add_task(task) }