Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
id
);
}
switch (to) {
case "code":
return nextState.setIn(
["notebook", "cellMap", id],
makeCodeCell({
source: cell.source
})
);
case "markdown":
return nextState.setIn(
["notebook", "cellMap", id],
makeMarkdownCell({
source: cell.source
})
);
case "raw":
return nextState.setIn(
["notebook", "cellMap", id],
makeRawCell({
source: cell.source
})
);
}
// If we didn't match on the `to`, we should change nothing as we don't implement
// other cell types (as there aren't any)
return state;
}