mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
Fix {{currentSwipeId}} not returning first swipe
This commit is contained in:
parent
c91e7dd948
commit
21c064fc5b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user