Add radix param & remove unused import

This commit is contained in:
Jannis Mattheis 2018-03-16 17:15:56 +01:00 committed by Jannis Mattheis
parent 886e4bb102
commit 29e6421c8c
2 changed files with 1 additions and 2 deletions

1
app.go
View File

@ -6,7 +6,6 @@ import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/gotify/server/config"
"github.com/gotify/server/database"
"github.com/gotify/server/model"

View File

@ -42,7 +42,7 @@ class Messages extends Component {
return -1;
}
const {match} = props;
return match.params.id !== undefined ? parseInt(match.params.id) : -1;
return match.params.id !== undefined ? parseInt(match.params.id, 10) : -1;
}
render() {