Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Fix object rendering on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Apr 28, 2020
1 parent 4945674 commit 319abed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/monitor/src/components/Monitor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

<div class="debugging">
<h3>Debugging <small>...left here intentionally, for now.</small></h3>
<pre>{{ selectedProcess | clean_object }}</pre>
<pre>{{ selectedProcess | cleanObject | fmtObject }}</pre>
</div>
</div>
<div v-else-if="selected == 2" class="eleven wide column container content-pane">
Expand Down Expand Up @@ -205,7 +205,7 @@

<div class="debugging">
<h3>Debugging <small>...left here intentionally, for now.</small></h3>
<pre>{{ selectedScope | clean_object }}</pre>
<pre>{{ selectedScope | cleanObject | fmtObject }}</pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -522,7 +522,7 @@ export default {
return value;
}
},
clean_object(value) {
cleanObject(value) {
// make copy
var copy = {};
for (const [key, value] of Object.entries(value)) {
Expand All @@ -532,6 +532,9 @@ export default {
}
}
return copy;
},
fmtObject(value) {
return JSON.stringify(value, null, ' ');
}
}
};
Expand Down

0 comments on commit 319abed

Please sign in to comment.