feat: fix drag and drop
This commit is contained in:
@@ -319,10 +319,7 @@ const CreateLyricsWithAi = () => {
|
||||
};
|
||||
|
||||
const onPressBack = () => {
|
||||
// If currently on SongStructure, go back to previous screen instead of previous step
|
||||
if (selectedIndex === 5) {
|
||||
goBack();
|
||||
} else if (selectedIndex > 0) {
|
||||
if (selectedIndex > 0) {
|
||||
setSelectedIndex((idx) => Math.max(0, idx - 1));
|
||||
} else {
|
||||
goBack();
|
||||
|
||||
Reference in New Issue
Block a user