Refactor code structure for improved readability and maintainability, removed unnecessary console logs, removed old.js
This commit is contained in:
@@ -115,11 +115,11 @@ export default function MediaRequestForm() {
|
||||
const inputEl = ac?.getInput ? ac.getInput() : document.querySelector('.p-autocomplete-input');
|
||||
if (inputEl && typeof inputEl.blur === 'function') inputEl.blur();
|
||||
} catch (innerErr) {
|
||||
console.debug('selectArtist: overlay hide fallback failed', innerErr);
|
||||
// Ignore inner errors
|
||||
}
|
||||
}, 0);
|
||||
} catch (err) {
|
||||
console.debug('selectArtist: unable to schedule overlay hide', err);
|
||||
// Ignore outer errors
|
||||
}
|
||||
};
|
||||
|
||||
@@ -189,7 +189,6 @@ export default function MediaRequestForm() {
|
||||
try {
|
||||
if (metadataFetchToastId.current) toast.dismiss(metadataFetchToastId.current);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
metadataFetchToastId.current = toast.info("Retrieving metadata...",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user