Skip to content

Commit 79e2470

Browse files
added the default port
1 parent dfcc887 commit 79e2470

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/components/Content.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ const Content: React.FC<ContentProps> = ({ isExpanded }) => {
156156
setShowAlert(false);
157157
};
158158

159-
const openGraphUrl = `${process.env.BLOOM_URL}${userCredentials?.userName}@${localStorage.getItem(
160-
'hostname'
161-
)}%3A${localStorage.getItem('port')}&search=Show+me+a+graph`;
159+
const openGraphUrl = `${process.env.BLOOM_URL}${userCredentials?.userName}@${localStorage.getItem('hostname')}%3A${
160+
localStorage.getItem('port') ?? '7687'
161+
}&search=Show+me+a+graph`;
162162

163163
const classNameCheck = isExpanded ? 'contentWithExpansion' : 'contentWithNoExpansion';
164164
return (

frontend/src/components/S3Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ const S3Modal: React.FC<S3ModalProps> = ({ hideModal, open }) => {
7171
return;
7272
}
7373
setStatusMessage(`Successfully Created Source Nodes for ${apiResponse.data.success_count} Files`);
74-
reset();
7574
const defaultValues: CustomFile = {
7675
processing: 0,
7776
status: 'New',
@@ -118,6 +117,7 @@ const S3Modal: React.FC<S3ModalProps> = ({ hideModal, open }) => {
118117
});
119118
setFilesData(copiedFilesData);
120119
setFiles(copiedFiles);
120+
reset();
121121
} catch (error) {
122122
setStatus('danger');
123123
setStatusMessage('Some Error Occurred or Please Check your Instance Connection');

0 commit comments

Comments
 (0)