Skip to content

Commit

Permalink
fix: Preserve settings from provisioning
Browse files Browse the repository at this point in the history
* Config reload should not override the appUrl and skipTlsCheck parameters from provisioning

Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Apr 19, 2024
1 parent a7c15ac commit ba1cc9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/AppConfig/AppConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export const AppConfig = ({ plugin }: Props) => {
persistDataChanged: false,
});

const appUrl = config.appUrl;
// appUrl and skipTlsCheck configured from provisioning will
// always have higher precedence to default values
const appUrl = jsonData?.appUrl || config.appUrl;
const skipTlsCheck = jsonData?.skipTlsCheck || false;

const orientationOptions = [
Expand Down

0 comments on commit ba1cc9b

Please sign in to comment.