diff --git a/okta/app.go b/okta/app.go index b765d9b6b..25e0084c4 100644 --- a/okta/app.go +++ b/okta/app.go @@ -248,7 +248,10 @@ func buildAppVisibility(d *schema.ResourceData) *sdk.ApplicationVisibility { autoSubmit := d.Get("auto_submit_toolbar").(bool) hideMobile := d.Get("hide_ios").(bool) hideWeb := d.Get("hide_web").(bool) - autoLaunch := d.Get("auto_launch").(bool) + var autoLaunch bool + if _, ok := d.GetOk("auto_launch"); ok { + autoLaunch = d.Get("auto_launch").(bool) + } appVis := &sdk.ApplicationVisibility{ AutoSubmitToolbar: &autoSubmit, AutoLaunch: &autoLaunch,