feat: add drag and drop errors

This commit is contained in:
2025-11-03 15:26:09 +01:00
parent 74053b695a
commit c361505175
6 changed files with 283 additions and 85 deletions
+3 -1
View File
@@ -20,6 +20,7 @@ import {
const FAKE_PROGRESS_MAX = 96;
const PROGRESS_INTERVAL_MS = 250;
const CUSTOM_SANITIZE_OPTIONS = { autoInjectPreChorus: false };
const CreatingLyrics = ({ active, config, selections }) => {
const [progress, setProgress] = useState(0);
@@ -188,7 +189,8 @@ const CreatingLyrics = ({ active, config, selections }) => {
if (persistedSelections) {
if ("customStructure" in persistedSelections) {
persistedSelections.customStructure = sanitizeStructureList(
persistedSelections.customStructure
persistedSelections.customStructure,
CUSTOM_SANITIZE_OPTIONS
);
}
if ("parsedStructure" in persistedSelections) {