mirror of https://github.com/buster-so/buster.git
remove logs from report
This commit is contained in:
parent
635c5f668a
commit
0a8ab60f26
|
@ -24,7 +24,6 @@ export const useTrackAndUpdateReportChanges = ({
|
||||||
DEFAULT_UPDATE_OPERATIONS,
|
DEFAULT_UPDATE_OPERATIONS,
|
||||||
(report) => {
|
(report) => {
|
||||||
if (report.value) {
|
if (report.value) {
|
||||||
console.log('report', report.value);
|
|
||||||
const queryKey = reportsQueryKeys.reportsGetReport(reportId).queryKey;
|
const queryKey = reportsQueryKeys.reportsGetReport(reportId).queryKey;
|
||||||
queryClient.setQueryData(queryKey, (v) => {
|
queryClient.setQueryData(queryKey, (v) => {
|
||||||
if (!v) return v;
|
if (!v) return v;
|
||||||
|
|
|
@ -10,7 +10,7 @@ interface EditorContainerProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const editorContainerVariants = cva(
|
const editorContainerVariants = cva(
|
||||||
'relative w-full cursor-text bg-transparent caret-primary select-text selection:bg-brand/12 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15',
|
'relative w-full cursor-text bg-transparent caret-primary select-text selection:bg-brand/15 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15',
|
||||||
|
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
|
|
|
@ -25,6 +25,7 @@ export const ReportPageController: React.FC<{
|
||||||
const isStreamingMessage = useChatIndividualContextSelector((x) => x.isStreamingMessage);
|
const isStreamingMessage = useChatIndividualContextSelector((x) => x.isStreamingMessage);
|
||||||
|
|
||||||
const content: ReportElementsWithIds = report?.content || [];
|
const content: ReportElementsWithIds = report?.content || [];
|
||||||
|
const commonClassName = 'sm:px-[max(64px,calc(50%-350px))]';
|
||||||
|
|
||||||
const { mutate: updateReport } = useUpdateReport();
|
const { mutate: updateReport } = useUpdateReport();
|
||||||
|
|
||||||
|
@ -46,8 +47,6 @@ export const ReportPageController: React.FC<{
|
||||||
debouncedUpdateReport({ reportId, content });
|
debouncedUpdateReport({ reportId, content });
|
||||||
});
|
});
|
||||||
|
|
||||||
const commonClassName = 'sm:px-[max(64px,calc(50%-350px))]';
|
|
||||||
|
|
||||||
useTrackAndUpdateReportChanges({ reportId, subscribe: isStreamingMessage });
|
useTrackAndUpdateReportChanges({ reportId, subscribe: isStreamingMessage });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue