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
Commits
2aef8583
Commit
2aef8583
authored
5 months ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
organism and disease link can be null
parent
d6a770a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!264
Resolve "add support for matomo"
,
!244
Resolve "problem with projects validation"
Pipeline
#95308
passed
5 months ago
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
src/models/disease.ts
+1
-1
1 addition, 1 deletion
src/models/disease.ts
src/models/organism.ts
+1
-1
1 addition, 1 deletion
src/models/organism.ts
src/redux/project/project.selectors.ts
+4
-6
4 additions, 6 deletions
src/redux/project/project.selectors.ts
with
8 additions
and
8 deletions
CHANGELOG
+
2
−
0
View file @
2aef8583
minerva-front (18.0.0~beta.4) stable; urgency=medium
* Bugfix: source map for js was missing (#292)
* Bugfix: sometimes project don't have link to disease or organism, this
crashed listing of projects after log in (#290)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 02 Oct 2024 13:00:00 +0200
...
...
This diff is collapsed.
Click to expand it.
src/models/disease.ts
+
1
−
1
View file @
2aef8583
...
...
@@ -2,7 +2,7 @@ import { z } from 'zod';
export
const
disease
=
z
.
object
({
id
:
z
.
number
().
int
().
positive
(),
link
:
z
.
string
().
optional
(),
link
:
z
.
string
().
nullable
(),
type
:
z
.
string
(),
resource
:
z
.
string
(),
annotatorClassName
:
z
.
string
(),
...
...
This diff is collapsed.
Click to expand it.
src/models/organism.ts
+
1
−
1
View file @
2aef8583
...
...
@@ -2,7 +2,7 @@ import { z } from 'zod';
export
const
organism
=
z
.
object
({
id
:
z
.
number
().
int
().
positive
(),
link
:
z
.
string
().
optional
(),
link
:
z
.
string
().
nullable
(),
type
:
z
.
string
(),
resource
:
z
.
string
(),
annotatorClassName
:
z
.
string
(),
...
...
This diff is collapsed.
Click to expand it.
src/redux/project/project.selectors.ts
+
4
−
6
View file @
2aef8583
...
...
@@ -47,14 +47,12 @@ export const diseaseNameSelector = createSelector(
projectData
=>
projectData
?.
diseaseName
,
);
export
const
diseaseLinkSelector
=
createSelector
(
projectDataSelector
,
projectData
=>
projectData
?.
disease
?.
link
,
export
const
diseaseLinkSelector
=
createSelector
(
projectDataSelector
,
projectData
=>
projectData
?.
disease
?.
link
?
projectData
?.
disease
?.
link
:
undefined
,
);
export
const
organismLinkSelector
=
createSelector
(
projectDataSelector
,
projectData
=>
projectData
?.
organism
?.
link
,
export
const
organismLinkSelector
=
createSelector
(
projectDataSelector
,
projectData
=>
projectData
?.
organism
?.
link
?
projectData
?.
organism
?.
link
:
undefined
,
);
export
const
organismNameSelector
=
createSelector
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment