Skip to content

Commit d2e6d37

Browse files
committed
Mark secrets array as readonly
1 parent c57b400 commit d2e6d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/EditOAuth2AppPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type EditOAuth2AppProps = {
3939
deleteApp: () => void;
4040
generateAppSecret: () => void;
4141
deleteAppSecret: (id: string) => void;
42-
secrets?: TypesGen.OAuth2AppSecret[];
42+
secrets?: readonly TypesGen.OAuth2AppSecret[];
4343
newAppSecret?: TypesGen.OAuth2AppSecretFull;
4444
dismissNewSecret: () => void;
4545
error?: unknown;
@@ -177,7 +177,7 @@ export const EditOAuth2AppPageView: FC<EditOAuth2AppProps> = ({
177177
};
178178

179179
type OAuth2AppSecretsTableProps = {
180-
secrets?: TypesGen.OAuth2AppSecret[];
180+
secrets?: readonly TypesGen.OAuth2AppSecret[];
181181
generateAppSecret: () => void;
182182
isLoadingSecrets: boolean;
183183
isUpdating:

0 commit comments

Comments
 (0)