Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
안형욱
2021-06-13 11:48:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f7fd5b0d64d25912a74e3729beabcc40d39d608
2f7fd5b0
1 parent
4b7729ff
fix: url decoding 오류 해결
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
frontend/src/components/common/Input.js
frontend/src/components/common/Input.js
View file @
2f7fd5b
...
...
@@ -44,7 +44,7 @@ const MyInput = ({
const
[
query
,
setQuery
]
=
useState
(
''
);
const
history
=
useHistory
();
const
search
=
useLocation
();
const
name
=
search
.
search
.
substring
(
7
);
const
name
=
decodeURIComponent
(
search
.
search
.
substring
(
7
)
);
const
dispatch
=
useDispatch
();
useEffect
(()
=>
{
...
...
@@ -55,6 +55,7 @@ const MyInput = ({
setQuery
(
name
);
setSearchDatas
();
},
[
name
]);
return
(
<
InputBlock
color
=
{
color
}
...
...
Please
register
or
login
to post a comment