mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: typos
This commit is contained in:
@@ -45,12 +45,12 @@ export const saveDashboardResource = (params: any, callBack: Function) => {
|
||||
if (resCheck) {
|
||||
if (params.opt === 'newLeaf') {
|
||||
// create canvas
|
||||
const reqeustParams = {
|
||||
const requestParams = {
|
||||
...params,
|
||||
component_data: JSON.stringify(componentData.value),
|
||||
canvas_style_data: JSON.stringify(canvasStyleData.value),
|
||||
}
|
||||
dashboardApi.create_canvas(reqeustParams).then((res: any) => {
|
||||
dashboardApi.create_canvas(requestParams).then((res: any) => {
|
||||
dashboardStore.updateDashboardInfo({ id: res.id, dataState: 'ready' })
|
||||
callBack(res)
|
||||
})
|
||||
@@ -63,12 +63,12 @@ export const saveDashboardResource = (params: any, callBack: Function) => {
|
||||
callBack(res)
|
||||
})
|
||||
} else if (params.opt === 'updateLeaf') {
|
||||
const reqeustParams = {
|
||||
const requestParams = {
|
||||
...params,
|
||||
component_data: JSON.stringify(componentData.value),
|
||||
canvas_style_data: JSON.stringify(canvasStyleData.value),
|
||||
}
|
||||
dashboardApi.update_canvas(reqeustParams).then(() => {
|
||||
dashboardApi.update_canvas(requestParams).then(() => {
|
||||
callBack()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user