mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-18 08:07:46 +00:00
improve invite error handling (#2649)
* fix(invite): do not send empty queries for people search The endpoint might return an error if an empty query is sent. * fix(invite): add error logging for failed people directory requests The error currently being passed through from $.getJSON ended up being an empty string plus was not getting logged. So switch to fetch to move along with jquery killing and log the error. * fix(dial-in): add error logging for failed requests * ref(invite): create a fetch helper to remove duplicate logic
This commit is contained in:
@@ -6,6 +6,8 @@ import React, { Component } from 'react';
|
||||
|
||||
import InlineDialogFailure from './InlineDialogFailure';
|
||||
|
||||
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
||||
|
||||
/**
|
||||
* A MultiSelect that is also auto-completing.
|
||||
*/
|
||||
@@ -290,7 +292,9 @@ class MultiSelectAutocomplete extends Component {
|
||||
error: false
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
.catch(error => {
|
||||
logger.error('MultiSelectAutocomplete error in query', error);
|
||||
|
||||
this.setState({
|
||||
error: true,
|
||||
loading: false,
|
||||
|
||||
Reference in New Issue
Block a user