Prevent multiple search refreshes when unnecessary
This commit is contained in:
parent
828341ce80
commit
c45347ec25
|
@ -41,6 +41,7 @@ func getSearchOptions(db *sql.DB) {
|
||||||
options, err := logic.GetAllSearchOptions(db, searchCriteria)
|
options, err := logic.GetAllSearchOptions(db, searchCriteria)
|
||||||
logic.Check(err)
|
logic.Check(err)
|
||||||
searchOptions = options
|
searchOptions = options
|
||||||
|
shouldRefreshSearch = false
|
||||||
fmt.Println("READY")
|
fmt.Println("READY")
|
||||||
fmt.Println("RUN")
|
fmt.Println("RUN")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue