Преглед изворни кода

Revert "index-delete"

This reverts commit 0c33bc18ff3304af850002533669dc2c972b2bf7.
kazutoweseek пре 1 година
родитељ
комит
22c292ccfa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/app/src/components/Admin/UserGroup/UserGroupTable.tsx

+ 1 - 1
apps/app/src/components/Admin/UserGroup/UserGroupTable.tsx

@@ -179,7 +179,7 @@ export const UserGroupTable: FC<Props> = ({
                         >
                           <span className="material-symbols-outlined pe-2 pt-2">group</span>
                           <span className="text-decoration-underline">{group.name}</span>
-                          { hoveredIndex && (<span className="material-symbols-outlined px-2 py-0">edit</span>
+                          {(hoveredIndex === index) && (<span className="material-symbols-outlined px-2 py-0">edit</span>
                           )}
                         </button>
                       </div>