mirror of https://github.com/buster-so/buster.git
allow reasoning to flip
This commit is contained in:
parent
6e0b80203a
commit
e423f1305a
|
@ -156,7 +156,6 @@ export const useXAxis = ({
|
|||
| 'quarter'
|
||||
| 'year';
|
||||
const format = DATE_FORMATS[unit];
|
||||
console.log('auto unit?', { unit, format });
|
||||
return formatLabel(rawValue, { ...xColumnLabelFormat, dateFormat: format });
|
||||
}
|
||||
const res = formatLabel(rawValue, xColumnLabelFormat);
|
||||
|
@ -210,7 +209,6 @@ export const useXAxis = ({
|
|||
const memoizedXAxisOptions: DeepPartial<ScaleChartOptions<'bar'>['scales']['x']> | undefined =
|
||||
useMemo(() => {
|
||||
if (isPieChart) return undefined;
|
||||
console.log('type', { type, timeUnit, derivedTimeUnit });
|
||||
return {
|
||||
type,
|
||||
offset,
|
||||
|
|
|
@ -37,7 +37,6 @@ export const useAppLayout = () => {
|
|||
|
||||
// Handle shallow routing (only updating query params)
|
||||
if (options?.shallow && targetPathname === currentPathname) {
|
||||
console.log('shallow routing', targetPathname, currentPathname);
|
||||
return new Promise((resolve) => {
|
||||
const params = getQueryParamsFromPath(targetPath);
|
||||
onChangeQueryParams(params, false);
|
||||
|
|
|
@ -66,12 +66,9 @@ export const useAutoChangeLayout = ({
|
|||
chatId
|
||||
) {
|
||||
previousLastMessageId.current = lastMessageId;
|
||||
// onSetSelectedFile({ id: lastMessageId, type: 'reasoning', versionNumber: undefined });
|
||||
onChangePage({
|
||||
route: BusterRoutes.APP_CHAT_ID_REASONING_ID,
|
||||
chatId,
|
||||
messageId: lastMessageId
|
||||
});
|
||||
|
||||
onSetSelectedFile({ id: lastMessageId, type: 'reasoning', versionNumber: undefined });
|
||||
|
||||
console.log('FLIP TO REASONING!', lastMessageId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue