Skip to content

Commit 8859a8a

Browse files
committed
refactor: typos
1 parent 78cc12a commit 8859a8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/src/views/dashboard/utils/canvasUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export const saveDashboardResource = (params: any, callBack: Function) => {
4545
if (resCheck) {
4646
if (params.opt === 'newLeaf') {
4747
// create canvas
48-
const reqeustParams = {
48+
const requestParams = {
4949
...params,
5050
component_data: JSON.stringify(componentData.value),
5151
canvas_style_data: JSON.stringify(canvasStyleData.value),
5252
}
53-
dashboardApi.create_canvas(reqeustParams).then((res: any) => {
53+
dashboardApi.create_canvas(requestParams).then((res: any) => {
5454
dashboardStore.updateDashboardInfo({ id: res.id, dataState: 'ready' })
5555
callBack(res)
5656
})
@@ -63,12 +63,12 @@ export const saveDashboardResource = (params: any, callBack: Function) => {
6363
callBack(res)
6464
})
6565
} else if (params.opt === 'updateLeaf') {
66-
const reqeustParams = {
66+
const requestParams = {
6767
...params,
6868
component_data: JSON.stringify(componentData.value),
6969
canvas_style_data: JSON.stringify(canvasStyleData.value),
7070
}
71-
dashboardApi.update_canvas(reqeustParams).then(() => {
71+
dashboardApi.update_canvas(requestParams).then(() => {
7272
callBack()
7373
})
7474
}

0 commit comments

Comments
 (0)