mirror of
https://github.com/sasjs/server.git
synced 2026-01-11 00:10:06 +00:00
fix(log): fixed single chunk display
This commit is contained in:
@@ -81,11 +81,11 @@ export const isTheLastChunk = (
|
||||
}
|
||||
|
||||
export const splitIntoChunks = (log: string, chunkSize = defaultChunkSize) => {
|
||||
if (!log.length) return []
|
||||
if (!log) return []
|
||||
|
||||
const logLines: string[] = log.split(`\n`)
|
||||
|
||||
if (logLines.length <= chunkSize) return log
|
||||
if (logLines.length <= chunkSize) return [log]
|
||||
|
||||
const chunks: string[] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user