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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
front/src/Routes/Chat/ChatContainer.js
front/src/Routes/Chat/ChatContainer.js
View file @
5b9b7ed
...
...
@@ -18,13 +18,13 @@ export default withRouter(({ location }) => {
if
(
roomName
!==
undefined
)
{
const
{
data
}
=
useQuery
(
GET_ROOM_BY_NAME
,
{
variables
:
{
roomName
}
});
if
(
data
!==
undefined
)
{
const
{
getRoomByName
:
{
getRoomByName
:
{
id
:
roomId
},
},
}
=
data
;
roomNum
=
Number
(
roomId
);
}
}
const
[
createMsg
]
=
useMutation
(
WHOLE_MESSAGE
);
//const { data } = useSubscription(SUBSCRIPTION_MSG);
...
...
Please
register
or
login
to post a comment