fix: reset context selection counter on clear and session switch
This commit is contained in:
1 parent
751fbc69d0
commit
834ff49816
1 file changed
+2
@@ -910,10 +910,12 @@ function _addNamedContextBlock(text){
|
||||
|
||||
function _removeNamedContextBlock(id){
|
||||
_pendingSelections=_pendingSelections.filter(s=>s.id!==id);
|
||||
if(!_pendingSelections.length)_selectionIdCounter=0;
|
||||
_renderSelectionChips();
|
||||
}
|
||||
|
||||
function _clearPendingSelections(){
|
||||
_selectionIdCounter=0;
|
||||
if(!_pendingSelections.length)return false;
|
||||
_pendingSelections=[];
|
||||
_renderSelectionChips();
|
||||
|
||||
Reference in new issue
Block a user