Skip to content

Commit af003c5

Browse files
committed
Fixed an issue with the settings manager not properly handling 304 settings not modified responses.
1 parent 7ec9586 commit af003c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/src/configuration/SettingsManager.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ export class SettingsManager {
6161
this._isUpdatingSettings = true;
6262
const response = await config.services.submissionClient.getSettings(version);
6363
try {
64-
if (!config || !response || !response.success || !response.data) {
64+
if (response.status === 304) {
65+
log.trace("Settings are up-to-date");
66+
return;
67+
}
68+
69+
if (!response?.success || !response.data) {
6570
log.warn(`${unableToUpdateMessage}: ${response.message}`);
6671
return;
6772
}

0 commit comments

Comments
 (0)