sdy

update data destructuring

......@@ -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);
......