mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
place optional parameters of functions at the end(#104)
This commit is contained in:
@@ -12,7 +12,7 @@ export default function AreasContextProvider({ children }) {
|
||||
const { selectedElement, setSelectedElement } = useSelect();
|
||||
const { setUndoStack, setRedoStack } = useUndoRedo();
|
||||
|
||||
const addArea = (addToHistory = true, data) => {
|
||||
const addArea = (data, addToHistory = true) => {
|
||||
if (data) {
|
||||
setAreas((prev) => {
|
||||
const temp = prev.slice();
|
||||
|
||||
Reference in New Issue
Block a user