[WEB-3871] fix: sidebar label property #6934
This commit is contained in:
parent
642dabfe35
commit
0e1ebff978
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
import { useLabel } from "@/hooks/store";
|
import { useLabel } from "@/hooks/store";
|
||||||
|
|
@ -14,7 +15,7 @@ type TLabelListItem = {
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const LabelListItem: FC<TLabelListItem> = (props) => {
|
export const LabelListItem: FC<TLabelListItem> = observer((props) => {
|
||||||
const { workspaceSlug, projectId, issueId, labelId, values, labelOperations, disabled } = props;
|
const { workspaceSlug, projectId, issueId, labelId, values, labelOperations, disabled } = props;
|
||||||
// hooks
|
// hooks
|
||||||
const { getLabelById } = useLabel();
|
const { getLabelById } = useLabel();
|
||||||
|
|
@ -51,4 +52,4 @@ export const LabelListItem: FC<TLabelListItem> = (props) => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue