diff --git a/internal/outpost/proxyv2/application/oauth.go b/internal/outpost/proxyv2/application/oauth.go index 9542d6456..6029a39ee 100644 --- a/internal/outpost/proxyv2/application/oauth.go +++ b/internal/outpost/proxyv2/application/oauth.go @@ -15,7 +15,11 @@ func (a *Application) handleRedirect(rw http.ResponseWriter, r *http.Request) { if err != nil { s.Values[constants.SessionOAuthState] = []string{} } - state := s.Values[constants.SessionOAuthState].([]string) + state, ok := s.Values[constants.SessionOAuthState].([]string) + if !ok { + s.Values[constants.SessionOAuthState] = []string{} + state = []string{} + } s.Values[constants.SessionOAuthState] = append(state, newState) err = s.Save(r, rw) if err != nil { diff --git a/web/src/elements/forms/DeleteForm.ts b/web/src/elements/forms/DeleteForm.ts index 84b3a9ea4..c0f764b02 100644 --- a/web/src/elements/forms/DeleteForm.ts +++ b/web/src/elements/forms/DeleteForm.ts @@ -88,7 +88,9 @@ export class DeleteForm extends ModalButton { return html``; } return html` -
+

${t`The following objects use ${objName} `}