aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/WebBox.tsx3
-rw-r--r--src/client/views/nodes/chatbot/utils/AgentDocumentManager.ts2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index 0f0008700..045af7ecd 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -1198,7 +1198,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
TraceMobx();
// const previewScale = this._previewNativeWidth ? 1 - this.sidebarWidth() / this._previewNativeWidth : 1;
const pointerEvents = this.layoutDoc._lockedPosition ? 'none' : (this._props.pointerEvents?.() as Property.PointerEvents | undefined);
- // const scale = previewScale * (this._props.NativeDimScaling?.() || 1);
+ const scale = this._props.NativeDimScaling?.() || 1;
return (
<div
className="webBox-outerContent"
@@ -1295,6 +1295,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
TraceMobx();
const containerWidth = NumCast(this.layoutDoc._width) || this._props.PanelWidth();
const pointerEvents = this.layoutDoc._lockedPosition ? 'none' : (this._props.pointerEvents?.() as Property.PointerEvents);
+ const scale = this._props.NativeDimScaling?.() || 1;
// Force the component to be square
this.layoutDoc._height = containerWidth;
diff --git a/src/client/views/nodes/chatbot/utils/AgentDocumentManager.ts b/src/client/views/nodes/chatbot/utils/AgentDocumentManager.ts
index a27220898..14cffcb70 100644
--- a/src/client/views/nodes/chatbot/utils/AgentDocumentManager.ts
+++ b/src/client/views/nodes/chatbot/utils/AgentDocumentManager.ts
@@ -131,7 +131,7 @@ export class AgentDocumentManager {
console.log(`Found ${linkedDocs.length} linked documents via LinkManager`);
// Process the linked documents
- linkedDocs.forEach((doc: Doc) => {
+ linkedDocs.forEach((doc: Doc | undefined) => {
if (doc) {
this.processDocument(doc);
console.log('Processed linked document:', doc.id, doc.title, doc.type);