diff --git a/viewer/components/OverlayDialog.jsx b/viewer/components/OverlayDialog.jsx index eb71900d..7de1c056 100644 --- a/viewer/components/OverlayDialog.jsx +++ b/viewer/components/OverlayDialog.jsx @@ -276,9 +276,13 @@ export const dialogHelper=(thisref,stateName,opt_closeCallback)=>{ }, getRender(){ if (!thisref.state[stateName]) return null; - return dialogDisplay(thisref.state[stateName],()=>{ - this.hideDialog() - }); + const D=thisref.state[stateName]; + return ( + { + this.hideDialog() + }}> + + ); }, isShowing(){ return !!thisref.state[stateName];