Remove logs

feat/readonly-editor
Arik Chakma 1 year ago
parent 7acb508c47
commit ddb1055573
  1. 1
      src/components/CustomRoadmap/CustomRoadmap.tsx
  2. 3
      src/components/CustomRoadmap/FlowRoadmapRenderer.tsx

@ -7,7 +7,6 @@ import {
httpPost,
} from '../../lib/http';
import { RoadmapHeader } from './RoadmapHeader';
import { RoadmapRenderer } from './RoadmapRenderer';
import { TopicDetail } from '../TopicDetail/TopicDetail';
import type { RoadmapDocument } from './CreateRoadmap/CreateRoadmapModal';
import { currentRoadmap } from '../../stores/roadmap';

@ -61,9 +61,7 @@ export function FlowRoadmapRenderer(props: FlowRoadmapRendererProps) {
return;
}
console.log(target);
const isCurrentStatusDone = target?.classList.contains('done');
console.log(target?.classList, isCurrentStatusDone);
updateTopicStatus(node.id, isCurrentStatusDone ? 'pending' : 'done');
}, []);
@ -127,6 +125,7 @@ export function FlowRoadmapRenderer(props: FlowRoadmapRendererProps) {
style={{
height: measuredHeight,
}}
className="min-h-screen"
onRendered={(wrapperRef) => {
renderResourceProgress('roadmap', roadmapId).then(() => {});
}}

Loading…
Cancel
Save