aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-23 00:12:45 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-11-23 01:27:51 +0100
commit72dcf70db20ef5d09004b1be1355612500a32592 (patch)
tree44e7a591ad12340e0bd00e8bf49b904d75c5c853 /web
parentfea6041cde7c9642007d852272573bfe97c360a3 (diff)
downloadmitmproxy-72dcf70db20ef5d09004b1be1355612500a32592.tar.gz
mitmproxy-72dcf70db20ef5d09004b1be1355612500a32592.tar.bz2
mitmproxy-72dcf70db20ef5d09004b1be1355612500a32592.zip
mitmweb: fix event display
Diffstat (limited to 'web')
-rw-r--r--web/src/js/components/EventLog.jsx2
-rw-r--r--web/src/js/ducks/eventLog.js4
2 files changed, 2 insertions, 4 deletions
diff --git a/web/src/js/components/EventLog.jsx b/web/src/js/components/EventLog.jsx
index 636e3e9a..1a449511 100644
--- a/web/src/js/components/EventLog.jsx
+++ b/web/src/js/components/EventLog.jsx
@@ -70,7 +70,7 @@ class EventLog extends Component {
export default connect(
state => ({
filters: state.eventLog.filters,
- events: state.eventLog.view.data,
+ events: state.eventLog.view,
}),
{
close: toggleVisibility,
diff --git a/web/src/js/ducks/eventLog.js b/web/src/js/ducks/eventLog.js
index 776e4b08..73eaf2e8 100644
--- a/web/src/js/ducks/eventLog.js
+++ b/web/src/js/ducks/eventLog.js
@@ -49,14 +49,12 @@ export function toggleVisibility() {
return { type: TOGGLE_VISIBILITY }
}
-let logId = 1 // client-side log ids are odd
export function add(message, level = 'web') {
let data = {
- id: logId,
+ id: Math.random().toString(),
message,
level,
}
- logId += 2
return {
type: ADD,
cmd: "add",