Fix secret creation (#2862)

closes #2821
This commit is contained in:
Anbraten 2023-11-22 19:53:59 +01:00 committed by GitHub
parent c9e587753e
commit ac009d9b0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -50,11 +50,11 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
image: [],
event: [WebhookEvents.Push],
images: [],
events: [WebhookEvents.Push],
};
const apiClient = useApiClient();

View file

@ -49,11 +49,11 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Org, Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
image: [],
event: [WebhookEvents.Push],
images: [],
events: [WebhookEvents.Push],
};
const apiClient = useApiClient();

View file

@ -49,7 +49,7 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Repo, Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
images: [],

View file

@ -55,11 +55,11 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
image: [],
event: [WebhookEvents.Push],
images: [],
events: [WebhookEvents.Push],
};
const apiClient = useApiClient();