Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-28 17:33:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b9b7edc8ab4d33410a0f2968e5da0be0f286dac
5b9b7edc
1 parent
8eac24c3
update data destructuring
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
front/src/Routes/Chat/ChatContainer.js
front/src/Routes/Chat/ChatContainer.js
View file @
5b9b7ed
...
...
@@ -18,12 +18,12 @@ export default withRouter(({ location }) => {
if
(
roomName
!==
undefined
)
{
const
{
data
}
=
useQuery
(
GET_ROOM_BY_NAME
,
{
variables
:
{
roomName
}
});
const
{
getRoomByName
:
{
if
(
data
!==
undefined
)
{
const
{
getRoomByName
:
{
id
:
roomId
},
}
,
}
=
data
;
roomNum
=
Number
(
roomId
);
}
=
data
;
roomNum
=
Number
(
roomId
)
;
}
}
const
[
createMsg
]
=
useMutation
(
WHOLE_MESSAGE
);
...
...
Please
register
or
login
to post a comment