@burdenoff/planmagnet-fe-sdk 2026.706.3 → 2026.706.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2671,37 +2671,26 @@ function TaskCommentsCore({
2671
2671
  DELETE_ENTITY_COMMENT
2672
2672
  );
2673
2673
  const authorName = (id) => id === currentActorId ? L.you : resolveAssignee?.(id)?.name ?? void 0;
2674
- const post = async ({ text, mentionUserIds }, parentCommentId) => {
2674
+ const post = async ({ text }, parentCommentId) => {
2675
2675
  setError(null);
2676
- const base = {
2677
- entityType,
2678
- entityId,
2679
- content: { text },
2680
- contentType: "TEXT",
2681
- ...parentCommentId ? { parentCommentId } : {}
2682
- };
2683
- const create = (withMentions) => createComment({
2684
- variables: {
2685
- input: withMentions && mentionUserIds.length ? { ...base, mentionUserIds } : base
2686
- }
2687
- });
2688
2676
  try {
2689
- await create(true);
2690
- } catch (err) {
2691
- if (mentionUserIds.length) {
2692
- try {
2693
- await create(false);
2694
- } catch (err2) {
2695
- setError(L.failedToComment);
2696
- throw err2;
2677
+ await createComment({
2678
+ variables: {
2679
+ input: {
2680
+ entityType,
2681
+ entityId,
2682
+ content: { text },
2683
+ contentType: "TEXT",
2684
+ ...parentCommentId ? { parentCommentId } : {}
2685
+ }
2697
2686
  }
2698
- } else {
2699
- setError(L.failedToComment);
2700
- throw err;
2701
- }
2687
+ });
2688
+ await refetch();
2689
+ setReplyingTo(null);
2690
+ } catch (err) {
2691
+ setError(L.failedToComment);
2692
+ throw err;
2702
2693
  }
2703
- await refetch();
2704
- setReplyingTo(null);
2705
2694
  };
2706
2695
  const handleDelete = async (id) => {
2707
2696
  setError(null);