fix(ui): js errors
This commit is contained in:
parent
ed99610ff4
commit
cad95b452f
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ function CreateNote({
|
|||
}
|
||||
}, [isVisible]);
|
||||
|
||||
const duration = Duration.fromMillis(time).toFormat('mm:ss');
|
||||
const duration = Duration.fromMillis(time || 0).toFormat('mm:ss');
|
||||
|
||||
const cleanUp = () => {
|
||||
setCreateNoteTooltip({ isVisible: false, time: 0 });
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ function SelectDateRange(props: Props) {
|
|||
{isCustom && (
|
||||
<OutsideClickDetectingDiv
|
||||
onClickOutside={(e: any) => {
|
||||
if (e.target.parentElement.parentElement.classList.contains('rc-time-picker-panel-select') || e.target.parentElement.parentElement.classList[0].includes('-menu')) {
|
||||
if (e.target.parentElement.parentElement.classList.contains('rc-time-picker-panel-select') || e.target.parentElement.parentElement.classList[0]?.includes('-menu')) {
|
||||
return false;
|
||||
}
|
||||
setIsCustom(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue