Expect only one format from our API
What are we, LLMs?
This commit is contained in:
parent
3c26ebdaf2
commit
067465ab35
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@
|
|||
}
|
||||
|
||||
const data = await response.json();
|
||||
this.communications = data.communications || data; // Handle different response formats
|
||||
this.communications = data.communications;
|
||||
// if we already had something selected, reset it using the new data
|
||||
if (this.selectedCommunication) {
|
||||
const matching = this.communications.filter((report) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue