maplistdialog: opening route disables editing

This commit is contained in:
muerwre 2019-03-07 12:55:54 +07:00
parent 364f6b165e
commit 32904955a9

View file

@ -88,10 +88,11 @@ class Component extends React.Component<IMapListDialogProps, IMapListDialogState
if (isMobile()) this.props.setDialogActive(false);
// pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
pushPath(`/${_id}`);
this.stopEditing();
pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
pushPath(`/${_id}`);
// pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
};
onScroll = (e: { target: { scrollHeight: number, scrollTop: number, clientHeight: number }}): void => {