Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Commit a0f488b

Browse files
committed
Fix "data.payload is null" in mqtt list view
1 parent c9f2951 commit a0f488b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/components/frame-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ var FrameBubble = React.createFactory(React.createClass({
136136

137137
var type = frame.sent ? "send" : "receive";
138138
var op = getOpCodeLabel(frame);
139-
var size = Str.formatSize(data.payload.length);
139+
var size = Str.formatSize(data.payload ? data.payload.length : 0);
140140
var payload = Str.cropString(data.payload, 50);
141141
var time = new Date(data.timeStamp / 1000);
142142
var timeText = time.getHours() + ":" + time.getMinutes() +

0 commit comments

Comments
 (0)