Compare commits
No commits in common. "0f079080a1fb692142bfe56f6eba1eaf7c5d7752" and "3b96344943966cf22572b2baafba442d802f4537" have entirely different histories.
0f079080a1
...
3b96344943
@ -21,7 +21,6 @@ import { moduleSelectionDataState, selectedModuleState } from '@/store/selectedM
|
||||
import { useCanvasPopupStatusController } from './common/useCanvasPopupStatusController'
|
||||
import { useCanvasMenu } from './common/useCanvasMenu'
|
||||
import { QcastContext } from '@/app/QcastProvider'
|
||||
import { unescapeString } from '@/util/common-utils'
|
||||
|
||||
/**
|
||||
* 플랜 처리 훅
|
||||
@ -265,7 +264,7 @@ export function usePlan(params = {}) {
|
||||
objectNo,
|
||||
planNo: parseInt(newPlan.planNo),
|
||||
popupType: 1,
|
||||
popupStatus: unescapeString(sourceDegree.popupStatus),
|
||||
popupStatus: sourceDegree.popupStatus,
|
||||
}
|
||||
console.log('🚀 ~ postObjectPlan ~ degreeData:', degreeData)
|
||||
await post({ url: `/api/v1/canvas-popup-status`, data: degreeData })
|
||||
|
||||
@ -145,19 +145,9 @@ export const unescapeString = (str) => {
|
||||
''': "'",
|
||||
}
|
||||
|
||||
/*
|
||||
1. 한번 변환은 {" 로 변환됨 : 에러 발생 => while 변경
|
||||
2. 변환할 내용이 없으면 리턴값이 undefined
|
||||
|
||||
if (regex.test(str)) {
|
||||
return str.replace(regex, (matched) => chars[matched] || matched)
|
||||
}
|
||||
*/
|
||||
|
||||
while (regex.test(str)) {
|
||||
str = str.replace(regex, (matched) => chars[matched] || matched);
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
export const isNullOrUndefined = (value) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user