mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: remove debug statements
This commit is contained in:
parent
fe14ea3577
commit
aae4d34eb0
@ -125,8 +125,6 @@ export const insertImageCommand = (
|
|||||||
if (input.files?.length) {
|
if (input.files?.length) {
|
||||||
const file = input.files[0];
|
const file = input.files[0];
|
||||||
const pos = savedSelection?.anchor ?? editor.view.state.selection.from;
|
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);
|
startImageUpload(file, editor.view, pos, uploadFile, setIsSubmitting);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -31,6 +31,5 @@ export const getPrevListDepth = (typeOrName: string, state: EditorState) => {
|
|||||||
// Double the depth value to get results as 2, 4, 6, 8, etc.
|
// Double the depth value to get results as 2, 4, 6, 8, etc.
|
||||||
depth = depth * 2;
|
depth = depth * 2;
|
||||||
|
|
||||||
console.log("Parent list depth", depth);
|
|
||||||
return depth;
|
return depth;
|
||||||
};
|
};
|
||||||
|
@ -10,15 +10,12 @@ export const listItemHasSubList = (typeOrName: string, state: EditorState, node?
|
|||||||
const nodeType = getNodeType(typeOrName, state.schema);
|
const nodeType = getNodeType(typeOrName, state.schema);
|
||||||
|
|
||||||
let hasSubList = false;
|
let hasSubList = false;
|
||||||
console.log("node", node);
|
|
||||||
|
|
||||||
node.descendants((child) => {
|
node.descendants((child) => {
|
||||||
if (child.type === nodeType) {
|
if (child.type === nodeType) {
|
||||||
console.log("child", child.type, nodeType);
|
|
||||||
hasSubList = true;
|
hasSubList = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("before return", hasSubList);
|
|
||||||
return hasSubList;
|
return hasSubList;
|
||||||
};
|
};
|
||||||
|
@ -11,8 +11,6 @@ export const nextListIsSibling = (typeOrName: string, state: EditorState) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("sibling", listDepth, "current", listItemPos.depth, listItemPos, listDepth < listItemPos.depth);
|
|
||||||
|
|
||||||
if (listDepth === listItemPos.depth) {
|
if (listDepth === listItemPos.depth) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ export const prevListIsHigher = (typeOrName: string, state: EditorState) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(listDepth, listItemPos.depth, listItemPos, listDepth < listItemPos.depth);
|
|
||||||
if (listDepth < listItemPos.depth) {
|
if (listDepth < listItemPos.depth) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -113,12 +113,9 @@ function DragHandle(options: DragHandleOptions) {
|
|||||||
y: event.clientY,
|
y: event.clientY,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(node); // Log the node to see if it's correctly identified
|
|
||||||
|
|
||||||
if (!(node instanceof Element)) return;
|
if (!(node instanceof Element)) return;
|
||||||
|
|
||||||
const nodePos = nodePosAtDOM(node, view, options);
|
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;
|
if (nodePos === null || nodePos === undefined) return;
|
||||||
|
|
||||||
|
@ -57,8 +57,6 @@ export const CreateInboxIssueModal: React.FC<Props> = observer((props) => {
|
|||||||
const workspaceStore = useWorkspace();
|
const workspaceStore = useWorkspace();
|
||||||
const workspaceId = workspaceStore.getWorkspaceBySlug(workspaceSlug as string)?.id as string;
|
const workspaceId = workspaceStore.getWorkspaceBySlug(workspaceSlug as string)?.id as string;
|
||||||
|
|
||||||
console.log("in create issue modal", workspaceSlug, projectId);
|
|
||||||
|
|
||||||
const { mentionHighlights, mentionSuggestions } = useMention({
|
const { mentionHighlights, mentionSuggestions } = useMention({
|
||||||
workspaceSlug: workspaceSlug as string,
|
workspaceSlug: workspaceSlug as string,
|
||||||
projectId: projectId as string,
|
projectId: projectId as string,
|
||||||
|
@ -33,8 +33,6 @@ export class MentionStore implements IMentionStore {
|
|||||||
|
|
||||||
const suggestions = (projectMemberIds ?? [])?.map((memberId) => {
|
const suggestions = (projectMemberIds ?? [])?.map((memberId) => {
|
||||||
const memberDetails = this.rootStore.memberRoot.project.getProjectMemberDetails(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 {
|
return {
|
||||||
entity_name: "user_mention",
|
entity_name: "user_mention",
|
||||||
|
Loading…
Reference in New Issue
Block a user