mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
refactor: update token generation method and improve maxSessions validation
- Changed the token generation method to use slice instead of substr for better readability. - Enhanced maxSessions validation in the settings update handler to check for undefined values and ensure the input is a number before processing.
This commit is contained in:
@@ -579,7 +579,7 @@ export function TerminalView() {
|
||||
|
||||
return {
|
||||
type: "split",
|
||||
id: persisted.id || `split-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
||||
id: persisted.id || `split-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`,
|
||||
direction: persisted.direction,
|
||||
panels: childPanels,
|
||||
size: persisted.size,
|
||||
|
||||
Reference in New Issue
Block a user