Skip to content

Commit 846cf8a

Browse files
committed
fix: null exception in remote functions caught by ut suite fail to start
1 parent 6a05d38 commit 846cf8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function RemoteFunctions(config = {}) {
122122
return _moreOptionsHandlers.get(handlerName);
123123
}
124124
function getAllNodeMoreOptionsHandlers() {
125-
return _moreOptionsHandlers.values();
125+
return Array.from(_moreOptionsHandlers.values());
126126
}
127127

128128
/**
@@ -2240,7 +2240,7 @@ function RemoteFunctions(config = {}) {
22402240
}
22412241

22422242
// Render handler options with ordering support
2243-
const handlerOptions = Array.from(LivePreviewView.getAllNodeMoreOptionsHandlers())
2243+
const handlerOptions = LivePreviewView.getAllNodeMoreOptionsHandlers()
22442244
.map((handler, index) => {
22452245
if (!handler.renderMoreOptions) {
22462246
return null;
@@ -2449,7 +2449,7 @@ function RemoteFunctions(config = {}) {
24492449
const shadow = this.body.attachShadow({ mode: "open" });
24502450

24512451
// Render handler dropdown items with ordering support
2452-
const handlerItems = Array.from(getAllNodeMoreOptionsHandlers())
2452+
const handlerItems = getAllNodeMoreOptionsHandlers()
24532453
.map((handler, index) => {
24542454
if (!handler.renderDropdownItems) {
24552455
return null;

0 commit comments

Comments
 (0)