Update PiPedalModel.tsx
Modified the “setWifiDirectConfigSettings” method to resolve the promise only on success and reject on errors, matching the pattern used by “setWifiConfigSettings.”
This commit is contained in:
@@ -3046,12 +3046,12 @@ export class PiPedalModel //implements PiPedalModel
|
||||
serverConfigSettings
|
||||
)
|
||||
.then(() => {
|
||||
//resolve();
|
||||
resolve();
|
||||
})
|
||||
.catch((err) => {
|
||||
//resolve();
|
||||
resolve();
|
||||
});
|
||||
resolve();
|
||||
//resolve();
|
||||
|
||||
});
|
||||
this.expectDisconnect(ReconnectReason.LoadingSettings);
|
||||
|
||||
Reference in New Issue
Block a user