Skip to content

Commit abdc21c

Browse files
MadinventorZerojonocrbuddhajjigaexkevinparkwilliamdyoon
committed
Working on bug in annotations
Co-authored-by: jonocr <[email protected]> Co-authored-by: buddhajjigae <[email protected]> Co-authored-by: xkevinpark <[email protected]> Co-authored-by: williamdyoon <[email protected]>
1 parent 8250068 commit abdc21c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

app/src/components/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ export const App = (): JSX.Element => {
6060

6161
// Caret Start Updated save cycle
6262
useEffect(() => {
63-
console.log('Legacy state', state);
6463
// provide config properties to legacy projects so new edits can be auto saved
6564
if (state.config === undefined) {
6665
state.config = {saveFlag:true, saveTimer:false};
6766
};
68-
console.log('Updated state for legacy projects', state);
6967
// New project save configuration to optimize server load and minimize Ajax requests
7068
if (state.config.saveFlag) {
7169
state.config.saveFlag = false;

app/src/components/main/DirectChildComponent.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function DirectChildComponent({ childId, type, typeId, style }: ChildElement) {
9494
style={combinedStyle}
9595
placeHolder=""
9696
linkId={null}
97+
childId={childId}
9798
>
9899
{renderIndirectChildren(childReferencedComponent)}
99100
</IndirectChild>
@@ -122,6 +123,7 @@ function DirectChildComponent({ childId, type, typeId, style }: ChildElement) {
122123
style={combinedStyle}
123124
placeHolder={HTMLDefaultPlaceholder}
124125
linkId={null}
126+
childId={childId}
125127
key={
126128
'indChildHTML' +
127129
child.childId.toString() +
@@ -135,6 +137,7 @@ function DirectChildComponent({ childId, type, typeId, style }: ChildElement) {
135137
style={combinedStyle}
136138
placeHolder={HTMLDefaultPlaceholder}
137139
linkId={null}
140+
childId={childId}
138141
key={
139142
'indChildNest' +
140143
child.childId.toString() +
@@ -158,6 +161,7 @@ function DirectChildComponent({ childId, type, typeId, style }: ChildElement) {
158161
style={combinedStyle}
159162
placeHolder=""
160163
linkId={child.typeId}
164+
childId={childId}
161165
>
162166
{''}
163167
</IndirectChild>

app/src/components/main/IndirectChild.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ function IndirectChild({ style, children, placeHolder, linkId, childId, name, an
2828

2929
return (
3030
<div style={combinedStyle}>
31-
{linkId ? (
32-
<div onClick={onClickHandlerRoute}>{linkName}</div>
33-
) : (
34-
placeHolder
35-
)}
36-
{children}
3731
{/* Caret start */}
3832
{` ( ${childId} )`}
3933
<Annotation
@@ -42,6 +36,12 @@ function IndirectChild({ style, children, placeHolder, linkId, childId, name, an
4236
annotations={annotations}
4337
/>
4438
{/* Caret end */}
39+
{linkId ? (
40+
<div onClick={onClickHandlerRoute}>{linkName}</div>
41+
) : (
42+
placeHolder
43+
)}
44+
{children}
4545
</div>
4646
);
4747
}

0 commit comments

Comments
 (0)