Skip to content
Snippets Groups Projects
Unverified Commit 118e713d authored by Raphael Krut-Landau's avatar Raphael Krut-Landau Committed by GitHub
Browse files

Fix error message in Create API Key modal (#47161)

parent 879195de
Branches
Tags
No related merge requests found
import { t } from "ttag";
import * as Yup from "yup";
import type { ApiKey } from "metabase-types/api";
......@@ -8,7 +9,9 @@ export function formatMaskedKey(maskedKey: string) {
export const API_KEY_VALIDATION_SCHEMA = Yup.object({
name: Yup.string().required(),
group_id: Yup.number().required(),
group_id: Yup.number()
.typeError(t`Select a group`)
.required(),
});
export type FlatApiKey = ApiKey & {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment