diff --git a/src/smart-components/CreateChannel/components/InviteUsers/index.tsx b/src/smart-components/CreateChannel/components/InviteUsers/index.tsx index 388b46856..2ded4e865 100644 --- a/src/smart-components/CreateChannel/components/InviteUsers/index.tsx +++ b/src/smart-components/CreateChannel/components/InviteUsers/index.tsx @@ -41,6 +41,7 @@ const InviteUsers: React.FC = ({ const globalStore = useSendbirdStateContext(); const userId = globalStore?.config?.userId; const sdk = globalStore?.stores?.sdkStore?.sdk as SendbirdGroupChat; + const logger = globalStore?.config?.logger; const idsToFilter = [userId]; const [users, setUsers] = useState([]); const [selectedUsers, setSelectedUsers] = useState({}); @@ -57,6 +58,8 @@ const InviteUsers: React.FC = ({ setUsersDataSource(applicationUserListQuery); applicationUserListQuery.next().then((users_) => { setUsers(users_); + }).catch((error) => { + logger.warning('CreateChannel: applicationUserListQuery error', error); }); }, []);