Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#noissue] Console for debugging
Browse files Browse the repository at this point in the history
jihea-park committed Jan 24, 2025
1 parent 6509131 commit d30152c
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -17,6 +17,8 @@ export const CollapsibleCodeViewer = ({
language,
defaultOpen = true,
}: CollapsibleCodeViewerProps) => {
console.log('CollapsibleCodeViewerProps', title, code, language, defaultOpen);

const [isOpen, setIsOpen] = React.useState(defaultOpen);

return (
Original file line number Diff line number Diff line change
@@ -221,24 +221,31 @@ export const CallTree = ({ data, mapData, metaData }: CallTreeProps) => {
}}
onClickDetailView={(callStackData) => {
const nextItem = mapData?.find((d) => Number(d.id) === Number(callStackData.id) + 1);
console.info('callStackData', callStackData);
console.info('nextItem', nextItem);
if (nextItem?.title === 'SQL-BindValue' || nextItem?.title === 'MONGO-JSON-BindValue') {
console.info(111);
const formData = new FormData();
formData.append('type', callStackData.title === 'SQL' ? 'sql' : 'mongoJson');
formData.append('metaData', callStackData.arguments);
formData.append('bind', nextItem.arguments);
console.info(222);
mutate(formData);

console.info(333);
setSqlDetail({
originalSql: callStackData.arguments,
bindValue: nextItem.arguments,
});
} else {
console.info(444);
setSqlDetail({
originalSql: callStackData.arguments,
bindedSql: undefined,
bindValue: undefined,
});
console.info(555);
}
console.info(666);
setSheetOpen(true);
}}
/>

0 comments on commit d30152c

Please sign in to comment.