mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 19:45:35 +01:00
Fixed Minor Type ISsues
This commit is contained in:
parent
54ce27e40d
commit
e1f6e69bee
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ export function WebsitesTable({
|
|||
}: WebsitesTableProps) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { renderTeamUrl } = useTeamUrl();
|
||||
const [deleteIds, setDeleteIds] = useState([]);
|
||||
const [deleteIds, setDeleteIds] = useState<string[]>([]);
|
||||
const [showConf, setShowConf] = useState(false);
|
||||
|
||||
if (!data?.length) {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export function WebsiteDeleteForm({
|
|||
if (typeof websiteId === 'string') {
|
||||
return del(`/websites/${websiteId}`);
|
||||
} else {
|
||||
const ids = typeof websiteId === 'string' ? [websiteId] : websiteId;
|
||||
const ids = websiteId;
|
||||
return Promise.all(ids.map(id => del(`/websites/${id}`)));
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue