Skip to content

Commit 2e3d82b

Browse files
#634 Fix empty Draw over/under history list SQL replacements (#635)
1 parent bc6b1f3 commit 2e3d82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

API/Backend/Draw/routes/draw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const clipOver = function (
204204
historyIndex: lastHistory[0].history_id + 1,
205205
history: lastHistory[0].history,
206206
};
207-
} else return { historyIndex: 0, history: [] };
207+
} else return { historyIndex: 0, history: null };
208208
})
209209
.then((historyObj) => {
210210
let history = historyObj.history;
@@ -335,7 +335,7 @@ const clipUnder = function (
335335
historyIndex: lastHistory[0].history_id + 1,
336336
history: lastHistory[0].history,
337337
};
338-
} else return { historyIndex: 0, history: [] };
338+
} else return { historyIndex: 0, history: null };
339339
})
340340
.then((historyObj) => {
341341
let history = historyObj.history;

0 commit comments

Comments
 (0)