From a23143870fe046317ae4b7f24dde7431600c5917 Mon Sep 17 00:00:00 2001 From: abaicus Date: Mon, 25 Nov 2024 19:32:03 +0200 Subject: [PATCH] chore: ignore eslint error for confirm --- src/dashboard/components/template-cloud/Sources.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dashboard/components/template-cloud/Sources.js b/src/dashboard/components/template-cloud/Sources.js index ceb2f9231..908b32d25 100644 --- a/src/dashboard/components/template-cloud/Sources.js +++ b/src/dashboard/components/template-cloud/Sources.js @@ -10,7 +10,8 @@ const Sources = ({ sourcesData, setSources, isSyncing }) => { const [ error, setError ] = useState(''); const deleteSource = (key) => { - const confirm = window.confirm(__('Are you sure you want to delete this source?', 'otter-blocks')); + // eslint-disable-next-line no-alert + const confirm = confirm(__('Are you sure you want to delete this source?', 'otter-blocks')); if (!confirm) { return;