mirror of
https://codeberg.org/demostf/inspector.git
synced 2026-06-03 10:04:09 +02:00
fix entid
This commit is contained in:
parent
a7577f78a5
commit
18755bcaec
3 changed files with 284 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ export class SearchBar extends Component<SearchBarProps, SearchBarState> {
|
|||
}
|
||||
|
||||
onEntity(event: ChangeEvent<HTMLInputElement>) {
|
||||
let entity = parseInt(event.target.value, 10);
|
||||
let entity = parseInt(event.target.value, 10) || 0;
|
||||
this.setState({entity});
|
||||
setTimeout(() => this.props.onSearch(this.getSearch()), 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue