Add radix param & remove unused import
This commit is contained in:
parent
886e4bb102
commit
29e6421c8c
1
app.go
1
app.go
|
|
@ -6,7 +6,6 @@ import (
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
"github.com/gotify/server/config"
|
"github.com/gotify/server/config"
|
||||||
"github.com/gotify/server/database"
|
"github.com/gotify/server/database"
|
||||||
"github.com/gotify/server/model"
|
"github.com/gotify/server/model"
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class Messages extends Component {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
const {match} = props;
|
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() {
|
render() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue