Fixed Minor Type ISsues

This commit is contained in:
The-Yearly 2025-05-20 21:47:48 +05:30
parent 54ce27e40d
commit e1f6e69bee
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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}`)));
}
},