Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
cdcb61da
Commit
cdcb61da
authored
Apr 24, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix update storage
parent
7f9af9b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CreateStorageServiceDialog.tsx
web/src/components/CreateStorageServiceDialog.tsx
+1
-0
TagsSection.tsx
web/src/components/HomeSidebar/TagsSection.tsx
+2
-4
No files found.
web/src/components/CreateStorageServiceDialog.tsx
View file @
cdcb61da
...
...
@@ -82,6 +82,7 @@ const CreateStorageServiceDialog: React.FC<Props> = (props: Props) => {
}
else
{
await
storageServiceClient
.
updateStorage
({
storage
:
Storage
.
fromPartial
({
id
:
storage
?.
id
,
title
:
basicInfo
.
title
,
type
:
type
,
config
:
{
...
...
web/src/components/HomeSidebar/TagsSection.tsx
View file @
cdcb61da
...
...
@@ -25,7 +25,6 @@ const TagsSection = () => {
const
filterStore
=
useFilterStore
();
const
tagStore
=
useTagStore
();
const
memoList
=
useMemoList
();
const
tagsText
=
Array
.
from
(
tagStore
.
getState
().
tags
);
const
filter
=
filterStore
.
state
;
const
[
tags
,
setTags
]
=
useState
<
Tag
[]
>
([]);
...
...
@@ -38,7 +37,7 @@ const TagsSection = () => {
);
useEffect
(()
=>
{
const
sortedTags
=
tagsText
.
sort
();
const
sortedTags
=
Array
.
from
(
tagStore
.
getState
().
tags
)
.
sort
();
const
root
:
KVObject
<
any
>
=
{
subTags
:
[],
};
...
...
@@ -57,7 +56,6 @@ const TagsSection = () => {
}
let
obj
=
tempObj
.
subTags
.
find
((
t
:
Tag
)
=>
t
.
text
===
tagText
);
if
(
!
obj
)
{
obj
=
{
key
,
...
...
@@ -72,7 +70,7 @@ const TagsSection = () => {
}
setTags
(
root
.
subTags
as
Tag
[]);
},
[
tag
sText
.
join
(
","
)
]);
},
[
tag
Store
.
getState
().
tags
]);
return
(
<
div
className=
"flex flex-col justify-start items-start w-full mt-3 px-1 h-auto shrink-0 flex-nowrap hide-scrollbar"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment