Skip to content

Commit

Permalink
chore: ignore eslint error for confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Nov 25, 2024
1 parent 82c5117 commit a231438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dashboard/components/template-cloud/Sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a231438

Please sign in to comment.