mirror of https://github.com/buster-so/buster.git
update console logs
This commit is contained in:
parent
c8bd71c5ea
commit
a83e088f74
|
@ -46,14 +46,6 @@ export const useAutoChangeLayout = ({
|
||||||
const hasReasoning = !!reasoningMessagesLength;
|
const hasReasoning = !!reasoningMessagesLength;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log({
|
|
||||||
isCompletedStream,
|
|
||||||
hasReasoning,
|
|
||||||
chatId,
|
|
||||||
previousLastMessageId: previousLastMessageId.current,
|
|
||||||
lastMessageId,
|
|
||||||
previousIsCompletedStream
|
|
||||||
});
|
|
||||||
//this will trigger when the chat is streaming and is has not completed yet (new chat)
|
//this will trigger when the chat is streaming and is has not completed yet (new chat)
|
||||||
if (
|
if (
|
||||||
!isCompletedStream &&
|
!isCompletedStream &&
|
||||||
|
|
|
@ -33,8 +33,6 @@ export const useSelectedFile = ({
|
||||||
const onSetSelectedFile = useMemoizedFn(async (file: SelectedFile | null) => {
|
const onSetSelectedFile = useMemoizedFn(async (file: SelectedFile | null) => {
|
||||||
const handleFileCollapse = shouldCloseSplitter(file, selectedFile, appSplitterRef);
|
const handleFileCollapse = shouldCloseSplitter(file, selectedFile, appSplitterRef);
|
||||||
|
|
||||||
console.log('onSetSelectedFile', file, selectedFile);
|
|
||||||
|
|
||||||
if (file && chatParams.chatId) {
|
if (file && chatParams.chatId) {
|
||||||
const link = assetParamsToRoute({
|
const link = assetParamsToRoute({
|
||||||
chatId: chatParams.chatId,
|
chatId: chatParams.chatId,
|
||||||
|
@ -46,8 +44,6 @@ export const useSelectedFile = ({
|
||||||
if (link) onChangePage(link);
|
if (link) onChangePage(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('handleFileCollapse', handleFileCollapse);
|
|
||||||
|
|
||||||
if (handleFileCollapse) {
|
if (handleFileCollapse) {
|
||||||
animateOpenSplitter('left');
|
animateOpenSplitter('left');
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -62,8 +62,6 @@ export const formatLabel = (
|
||||||
formattedText = String(replaceMissingDataWith);
|
formattedText = String(replaceMissingDataWith);
|
||||||
} else formattedText = String('null');
|
} else formattedText = String('null');
|
||||||
} else if (style === 'date' && !useKeyFormatter) {
|
} else if (style === 'date' && !useKeyFormatter) {
|
||||||
console.log(text, typeof text, columnType);
|
|
||||||
|
|
||||||
formattedText = formatLabelDate(text, {
|
formattedText = formatLabelDate(text, {
|
||||||
dateFormat,
|
dateFormat,
|
||||||
convertNumberTo,
|
convertNumberTo,
|
||||||
|
|
Loading…
Reference in New Issue