chore: remove debug statements

This commit is contained in:
Palanikannan1437 2024-04-01 12:11:04 +05:30
parent fe14ea3577
commit aae4d34eb0
8 changed files with 0 additions and 16 deletions

View File

@ -125,8 +125,6 @@ export const insertImageCommand = (
if (input.files?.length) {
const file = input.files[0];
const pos = savedSelection?.anchor ?? editor.view.state.selection.from;
// __AUTO_GENERATED_PRINT_VAR_START__
console.log("insertImageCommand#(anon)#if pos: %s", pos); // __AUTO_GENERATED_PRINT_VAR_END__
startImageUpload(file, editor.view, pos, uploadFile, setIsSubmitting);
}
};

View File

@ -31,6 +31,5 @@ export const getPrevListDepth = (typeOrName: string, state: EditorState) => {
// Double the depth value to get results as 2, 4, 6, 8, etc.
depth = depth * 2;
console.log("Parent list depth", depth);
return depth;
};

View File

@ -10,15 +10,12 @@ export const listItemHasSubList = (typeOrName: string, state: EditorState, node?
const nodeType = getNodeType(typeOrName, state.schema);
let hasSubList = false;
console.log("node", node);
node.descendants((child) => {
if (child.type === nodeType) {
console.log("child", child.type, nodeType);
hasSubList = true;
}
});
console.log("before return", hasSubList);
return hasSubList;
};

View File

@ -11,8 +11,6 @@ export const nextListIsSibling = (typeOrName: string, state: EditorState) => {
return false;
}
console.log("sibling", listDepth, "current", listItemPos.depth, listItemPos, listDepth < listItemPos.depth);
if (listDepth === listItemPos.depth) {
return true;
}

View File

@ -11,7 +11,6 @@ export const prevListIsHigher = (typeOrName: string, state: EditorState) => {
return false;
}
console.log(listDepth, listItemPos.depth, listItemPos, listDepth < listItemPos.depth);
if (listDepth < listItemPos.depth) {
return true;
}

View File

@ -113,12 +113,9 @@ function DragHandle(options: DragHandleOptions) {
y: event.clientY,
});
console.log(node); // Log the node to see if it's correctly identified
if (!(node instanceof Element)) return;
const nodePos = nodePosAtDOM(node, view, options);
console.log(nodePos); // Log the node position to see if it's correctly calculated
if (nodePos === null || nodePos === undefined) return;

View File

@ -57,8 +57,6 @@ export const CreateInboxIssueModal: React.FC<Props> = observer((props) => {
const workspaceStore = useWorkspace();
const workspaceId = workspaceStore.getWorkspaceBySlug(workspaceSlug as string)?.id as string;
console.log("in create issue modal", workspaceSlug, projectId);
const { mentionHighlights, mentionSuggestions } = useMention({
workspaceSlug: workspaceSlug as string,
projectId: projectId as string,

View File

@ -33,8 +33,6 @@ export class MentionStore implements IMentionStore {
const suggestions = (projectMemberIds ?? [])?.map((memberId) => {
const memberDetails = this.rootStore.memberRoot.project.getProjectMemberDetails(memberId);
// __AUTO_GENERATED_PRINT_VAR_START__
console.log("MentionStore#mentionSuggestions#(anon) memberDetails are: %s", memberDetails?.member.id); // __AUTO_GENERATED_PRINT_VAR_END__
return {
entity_name: "user_mention",