mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: build warnings
This commit is contained in:
parent
670ba09d8d
commit
05c08effbf
@ -71,17 +71,19 @@ export const ProjectSettingsLabelList: React.FC = observer(() => {
|
|||||||
if (result.reason == "DROP" && childLabel != parentLabel) {
|
if (result.reason == "DROP" && childLabel != parentLabel) {
|
||||||
const childLabelData = getLabelById(childLabel);
|
const childLabelData = getLabelById(childLabel);
|
||||||
captureLabelDragNDropEvent(childLabelData?.parent, parentLabel, childLabel, projectLabelsTree);
|
captureLabelDragNDropEvent(childLabelData?.parent, parentLabel, childLabel, projectLabelsTree);
|
||||||
|
if (workspaceSlug && projectId) {
|
||||||
|
updateLabelPosition(
|
||||||
|
workspaceSlug?.toString(),
|
||||||
|
projectId?.toString(),
|
||||||
|
childLabel,
|
||||||
|
parentLabel,
|
||||||
|
index,
|
||||||
|
prevParentLabel == parentLabel,
|
||||||
|
prevIndex
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
updateLabelPosition(
|
|
||||||
workspaceSlug?.toString()!,
|
|
||||||
projectId?.toString()!,
|
|
||||||
childLabel,
|
|
||||||
parentLabel,
|
|
||||||
index,
|
|
||||||
prevParentLabel == parentLabel,
|
|
||||||
prevIndex
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user