Showing 1,205 of 1,252 total issues
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isUndo: true,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...state, disabled: true };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...state, disabled: false };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isUndo: false,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return produce(state, (draft) => {
const question = draft[questionId];
const answerIds = question.answerIds;
// Ensure that the id is not being repeatedly added
if (answerIds.indexOf(latestAnswer.id) === -1) {
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return state;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isRedo: true,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[questionId]: {
...state[questionId],
isLoading: false,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
exp: computeExp(
questions,
maximumGrade,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
lineStyles: { ...lineStyles, [toolType]: style },
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
layers: [...layers, layer],
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
selectedTool,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
canvasWidth,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
canvasStates,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isDelete: true,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isCanvasSave: true,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
answer: { ...state[answerId].answer, scribbles },
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isDrawingMode,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
cursor,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[answerId]: {
...state[answerId],
isDisableObjectSelection: false,
- Create a ticketCreate a ticket