mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix {{currentSwipeId}} not returning first swipe
This commit is contained in:
@ -254,7 +254,7 @@ function getCurrentSwipeId() {
|
|||||||
// For swipe macro, we are accepting using the message that is currently being swiped
|
// For swipe macro, we are accepting using the message that is currently being swiped
|
||||||
const mid = getLastMessageId({ exclude_swipe_in_propress: false });
|
const mid = getLastMessageId({ exclude_swipe_in_propress: false });
|
||||||
const swipeId = chat[mid]?.swipe_id;
|
const swipeId = chat[mid]?.swipe_id;
|
||||||
return swipeId ? swipeId + 1 : null;
|
return swipeId !== null ? swipeId + 1 : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user