Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarika-padmanaban committed Aug 19, 2024
1 parent 4834ec1 commit ca37b05
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
24 changes: 13 additions & 11 deletions src/containers/Organization/Video/RightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,16 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
}, [limit, currentOffset]);

const onMouseUp = (e, blockIdx) => {
setTimeout(() => {
setCurrentIndex(blockIdx);
}, 100);

if (e && e.target) {
const { selectionStart, value } = e.target;
if (selectionStart !== undefined && value !== undefined) {
setShowPopOver(true);
setCurrentIndexToSplitTextBlock(blockIdx);
setSelectionStart(selectionStart);
setTimeout(() => {
setCurrentIndex(blockIdx);
}, 100);

if (e && e.target) {
const { selectionStart, value } = e.target;
if (selectionStart !== undefined && value !== undefined) {
setShowPopOver(true);
setCurrentIndexToSplitTextBlock(blockIdx);
setSelectionStart(selectionStart);
}
}

Expand Down Expand Up @@ -550,6 +550,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
return 0;
};


const handleAutosave = () => {
const reqBody = {
task_id: taskId,
Expand Down Expand Up @@ -630,6 +631,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
},
},
];


return (
<>
Expand Down Expand Up @@ -784,7 +786,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
ref={(el) => (textboxes.current[index] = el)}
onBlur={() => {
setTimeout(() => {
setShowPopOver(false);
// setShowPopOver(false);
}, 200);
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const SettingsButtonComponent = ({

return false;
};


const handleScript = () => {
setAnchorElSettings(null);
Expand Down
2 changes: 1 addition & 1 deletion src/containers/UserManagement/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Login = () => {
};

const createToken = async () => {
const apiObj = new LoginAPI(credentials.email, credentials.password);
const apiObj = new LoginAPI(credentials.email.toLowerCase(), credentials.password);
dispatch(APITransport(apiObj));
};

Expand Down

0 comments on commit ca37b05

Please sign in to comment.