Skip to content

Commit

Permalink
feat: ignore API warnings in live environments (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Nov 20, 2023
1 parent 54b0f2b commit 645f214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/restService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function restService<D>({
try {
data = await response.json();
const warning = response.headers.get('Warning');
if (warning) {
if (warning && config.isLocalServer) {
logError(warning);
}
} catch (error) {
Expand Down

0 comments on commit 645f214

Please sign in to comment.