Skip to content

Commit

Permalink
Null check
Browse files Browse the repository at this point in the history
  • Loading branch information
metapage CI Robot committed Nov 26, 2024
1 parent 564954d commit a82a013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/libs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@metapages/metapage",
"public": true,
"version": "1.2.0",
"version": "1.2.1",
"description": "Connect web pages together",
"repository": "https://github.com/metapages/metapage",
"homepage": "https://metapage.io/",
Expand Down
3 changes: 3 additions & 0 deletions app/libs/src/metapage/Metapage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,9 @@ export class Metapage extends MetapageShared {

case JsonRpcMethodsFromChild.OutputsUpdate:
const outputs: MetaframeInputMap = jsonrpc.params;
if (!outputs || Object.keys(outputs).length === 0) {
break;
}

if (this._metaframes[metaframeId]) {
var iframe = this._metaframes[metaframeId];
Expand Down

0 comments on commit a82a013

Please sign in to comment.