Skip to content

Commit 7a8c7ae

Browse files
Add condition
1 parent 0ffaaef commit 7a8c7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser-extension/src/side-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ browser.runtime.onMessage.addListener(async (m: any) => {
5151
let msg = BrowserMessage.fromJsonObject(m)
5252
if (msg instanceof ResizeSidebar) {
5353
resize(msg.size)
54-
setSidebarIframeStyle(iframe, msg.height, msg.position)
54+
msg.height && msg.position && setSidebarIframeStyle(iframe, msg.height, msg.position)
5555
} else if (msg instanceof FlowStepExecution) {
5656
return await new FlowExecutor(0).runStep(msg.step)
5757
}

0 commit comments

Comments
 (0)