Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Merge requests
!158
fix: multifix - bug snag
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: multifix - bug snag
bug-snag
into
development
Overview
0
Commits
1
Pipelines
2
Changes
21
Merged
Adrian Orłów
requested to merge
bug-snag
into
development
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
21
Expand
Bugs fixed:
MIN-303
Click on pin marker opens empty tab in the left panel
MIN-302
Missing unregister hook when registering plugin
MIN-289
After search and click on reaction, reaction's pins are not present
MIN-273
Reactions data is not cleared on search
MIN-265
The option "Perfect match" in the "Search Results" panel
MIN-239
Prevent molart modal random errors
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
0fa997e1
1 commit,
1 year ago
21 files
+
269
−
50
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
21
Search (e.g. *.vue) (Ctrl+P)
src/components/FunctionalArea/Modal/MolArtModal/MolArtModal.component.tsx
+
22
−
5
Options
import
{
MOLART_ERRORS
}
from
'
@/constants/errors
'
;
import
{
useAppDispatch
}
from
'
@/redux/hooks/useAppDispatch
'
;
import
{
useAppSelector
}
from
'
@/redux/hooks/useAppSelector
'
;
import
{
currentSelectedBioEntityIdSelector
}
from
'
@/redux/modal/modal.selector
'
;
import
{
closeModal
}
from
'
@/redux/modal/modal.slice
'
;
import
{
showToast
}
from
'
@/utils/showToast
'
;
import
*
as
MolArt
from
'
molart
'
;
import
*
as
React
from
'
react
'
;
import
{
useEffect
}
from
'
react
'
;
@@ -8,12 +12,25 @@ const containerId = 'molart-container';
export
const
MolArtModal
:
React
.
FC
=
()
=>
{
const
uniprot
=
useAppSelector
(
currentSelectedBioEntityIdSelector
);
const
dispatch
=
useAppDispatch
();
useEffect
(()
=>
{
const
molart
=
new
MolArt
({
uniprotId
:
uniprot
,
containerId
,
});
let
molart
:
typeof
MolArt
;
try
{
molart
=
new
MolArt
({
uniprotId
:
uniprot
,
containerId
,
});
}
catch
(
e
)
{
// eslint-disable-next-line no-console
console
.
error
(
e
);
dispatch
(
closeModal
());
showToast
({
type
:
'
error
'
,
message
:
MOLART_ERRORS
.
UNEXPECTED_MOLART_ERROR
,
});
}
return
()
=>
{
try
{
@@ -24,7 +41,7 @@ export const MolArtModal: React.FC = () => {
console
.
error
(
e
);
}
};
},
[
uniprot
]);
},
[
uniprot
,
dispatch
]);
return
(
<
div
className
=
"flex h-full w-full items-center justify-center bg-white"
id
=
{
containerId
}
/>
Loading