Updated frontend dependencies
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -27,7 +27,7 @@ export function BaseAccommodationsRoute(): React.ReactElement {
|
||||
|
||||
const loadKey = React.useRef(1);
|
||||
|
||||
const loadPromise = React.useRef<() => void>();
|
||||
const loadPromise = React.useRef<() => void>(null);
|
||||
|
||||
const load = async () => {
|
||||
setAccommodations(
|
||||
@ -53,7 +53,7 @@ export function BaseAccommodationsRoute(): React.ReactElement {
|
||||
build={() => {
|
||||
if (loadPromise.current != null) {
|
||||
loadPromise.current?.();
|
||||
loadPromise.current = undefined;
|
||||
loadPromise.current = null;
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user