Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ceph Webapp Poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Jacopo Gasparetto
Ceph Webapp Poc
Commits
3747cd2c
Commit
3747cd2c
authored
1 year ago
by
Jacopo Gasparetto
Browse files
Options
Downloads
Patches
Plain Diff
fix(frontend): deselection not working when a folder is selected
parent
3968e74e
No related branches found
Branches containing commit
Tags
v0.8.0-dev.2
Tags containing commit
1 merge request
!21
feat(release): New release
Checking pipeline status
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/routes/BucketBrowser/index.tsx
+10
-1
10 additions, 1 deletion
frontend/src/routes/BucketBrowser/index.tsx
with
10 additions
and
1 deletion
frontend/src/routes/BucketBrowser/index.tsx
+
10
−
1
View file @
3747cd2c
...
...
@@ -168,11 +168,20 @@ export const BucketBrowser = ({ bucketName }: PropsType) => {
throw
new
Error
(
"
Object name is undefined
"
);
}
if
(
selectedRows
.
has
(
index
))
{
const
newState
=
new
Set
(
selectedRows
);
newState
.
delete
(
index
);
selectedObjects
.
current
=
new
Map
(
Object
.
entries
(
selectedObjects
.
current
)
.
filter
(([
key
])
=>
key
.
startsWith
(
objectName
)));
setSelectedRows
(
newState
);
return
;
}
const
next
=
currentPath
.
findChild
(
objectName
);
if
(
!
next
)
{
throw
new
Error
(
`Child with name
${
objectName
}
not found.`
);
}
const
isDir
=
next
.
children
.
length
>
0
;
if
(
isDir
)
{
...
...
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