Fix typical bugs

This commit is contained in:
Thomas Nordquist
2019-06-26 12:12:28 +02:00
parent fc5a5d2035
commit 188b5c6c16
5 changed files with 12 additions and 10 deletions

View File

@@ -192,7 +192,7 @@ class Publish extends React.Component<Props, State> {
}
private history() {
const items = this.state.history.reverse().map(message => ({
const items = [...this.state.history].reverse().map(message => ({
key: sha1(message.topic + message.payload),
title: message.topic,
value: message.payload || '',