Skip to content

Commit 30f8838

Browse files
committed
removed obsolete state variable
1 parent c58a020 commit 30f8838

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

mikupad.html

+6-12
Original file line numberDiff line numberDiff line change
@@ -3701,8 +3701,7 @@
37013701
}
37023702
// token counts for an
37033703
useEffect(() => {
3704-
setNKeepTimeout(false)
3705-
const order = ["prefix","text","suffix"]
3704+
const order = ["prefix","text","suffix"]
37063705
const assembled = authorNoteTokens.text && authorNoteTokens.text !== ""
37073706
? order.map(key => authorNoteTokens[key]).join("")
37083707
: "";
@@ -3728,8 +3727,7 @@
37283727
} catch (e) {
37293728
if (e.name !== 'AbortError'){
37303729
reportError(e);
3731-
setNKeepTimeout(true)
3732-
setAuthorNoteTokens((prevauthorNoteTokens) => ({ ...prevauthorNoteTokens, "tokens": 0 }))
3730+
setAuthorNoteTokens((prevauthorNoteTokens) => ({ ...prevauthorNoteTokens, "tokens": 0 }))
37333731
}
37343732
}
37353733
}, 500);
@@ -3743,8 +3741,7 @@
37433741
}
37443742
// token counts for memory
37453743
useEffect(() => {
3746-
setNKeepTimeout(false)
3747-
const order = ["prefix","text","suffix"]
3744+
const order = ["prefix","text","suffix"]
37483745
const assembled = memoryTokens.text && memoryTokens.text !== ""
37493746
? order.map(key => memoryTokens[key]).join("")
37503747
: "";
@@ -3771,8 +3768,7 @@
37713768
} catch (e) {
37723769
if (e.name !== 'AbortError'){
37733770
reportError(e);
3774-
setNKeepTimeout(true)
3775-
setMemoryTokens((prevMemoryTokens) => ({ ...prevMemoryTokens, "tokens": 0 }));
3771+
setMemoryTokens((prevMemoryTokens) => ({ ...prevMemoryTokens, "tokens": 0 }));
37763772
}
37773773
}
37783774
}, 500);
@@ -3782,8 +3778,7 @@
37823778
},[modalState["context"],memoryTokens.text,memoryTokens.prefix,memoryTokens.suffix,cancel,endpoint,endpointAPI])
37833779
// token counts for wi
37843780
useEffect(() => {
3785-
setNKeepTimeout(false)
3786-
const assembled = memoryTokens.worldInfo && memoryTokens.worldInfo !== ""
3781+
const assembled = memoryTokens.worldInfo && memoryTokens.worldInfo !== ""
37873782
? [worldInfo.prefix,memoryTokens.worldInfo,worldInfo.suffix].join("")
37883783
: "";
37893784
if (assembled == "" || endpointAPI == 3){
@@ -3809,8 +3804,7 @@
38093804
} catch (e) {
38103805
if (e.name !== 'AbortError'){
38113806
reportError(e);
3812-
setNKeepTimeout(true)
3813-
setMemoryTokens((prevMemoryTokens) => ({ ...prevMemoryTokens, "tokensWI": 0 }));
3807+
setMemoryTokens((prevMemoryTokens) => ({ ...prevMemoryTokens, "tokensWI": 0 }));
38143808
}
38153809
}
38163810
}, 500);

0 commit comments

Comments
 (0)