import * as UiNotification from "WoltLabSuite/Core/Ui/Notification";
async function handleDelete(row: HTMLTableRowElement, objectName: string, endpoint: string): Promise<void> {
- const confirmationResult = await confirmationFactory().delete(objectName);
+ const confirmationResult = await confirmationFactory().delete(objectName ? objectName : undefined);
if (!confirmationResult) {
return;
}
exports.setup = setup;
UiNotification = tslib_1.__importStar(UiNotification);
async function handleDelete(row, objectName, endpoint) {
- const confirmationResult = await (0, Confirmation_1.confirmationFactory)().delete(objectName);
+ const confirmationResult = await (0, Confirmation_1.confirmationFactory)().delete(objectName ? objectName : undefined);
if (!confirmationResult) {
return;
}