| @@ -180,9 +180,9 @@ | ||
| 180 | 180 | } catch (error) { |
| 181 | 181 | return null; |
| 182 | 182 | } |
| 183 | 183 | }, |
| 184 | - enabled: can("manage_yatra"), | |
| 184 | + enabled: can("yatra_access_admin"), | |
| 185 | 185 | staleTime: 5 * 60 * 1000, // Cache for 5 minutes |
| 186 | 186 | }); |
| 187 | 187 | |
| 188 | 188 | // Delete mutation |
| @@ -845,8 +845,9 @@ | ||
| 845 | 845 | </span> |
| 846 | 846 | ), |
| 847 | 847 | }, |
| 848 | 848 | ], |
| 849 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 849 | 850 | [visibleColumns], |
| 850 | 851 | )} |
| 851 | 852 | actions={[ |
| 852 | 853 | { |