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
d34a0af0
Commit
d34a0af0
authored
4 weeks ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
sort overlays
parent
4239d0b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!393
Resolve "Sorting public overlays"
,
!380
Resolve "[MIN-194] Display user grouped overlays"
Pipeline
#101513
passed
4 weeks ago
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
src/redux/overlays/overlays.thunks.ts
+3
-1
3 additions, 1 deletion
src/redux/overlays/overlays.thunks.ts
with
4 additions
and
1 deletion
CHANGELOG
+
1
−
0
View file @
d34a0af0
minerva-front (18.1.1) stable; urgency=medium
* Bug fix: styling of notes reset only for a href (#334)
* Bug fix: disable searching for chemicals in projects without disease (#347)
* Bug fix: public overlays were not sorted (#349)
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 04 Feb 2025 16:00:00 +0200
...
...
This diff is collapsed.
Click to expand it.
src/redux/overlays/overlays.thunks.ts
+
3
−
1
View file @
d34a0af0
...
...
@@ -41,7 +41,9 @@ export const getAllPublicOverlaysByProjectId = createAsyncThunk<MapOverlay[], st
const
isDataValid
=
validateDataUsingZodSchema
(
response
.
data
,
z
.
array
(
mapOverlay
));
return
isDataValid
?
response
.
data
:
[];
return
isDataValid
?
response
.
data
.
sort
((
overlayA
,
overlayB
)
=>
overlayA
.
order
-
overlayB
.
order
)
:
[];
}
catch
(
error
)
{
return
Promise
.
reject
(
getError
({
error
,
prefix
:
OVERLAYS_FETCHING_ERROR_PREFIX
}));
}
...
...
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