| @@ -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 |
| @@ -580,9 +580,11 @@ | ||
| 580 | 580 | /> |
| 581 | 581 | ) : ( |
| 582 | 582 | <IconSelector |
| 583 | 583 | iconName={destination.icon.value} |
| 584 | - provider={destination.icon.provider ?? "yatra"} | |
| 584 | + provider={ | |
| 585 | + destination.icon.provider ?? "yatra" | |
| 586 | + } | |
| 585 | 587 | className="w-5 h-5 text-blue-600 dark:text-blue-400" |
| 586 | 588 | /> |
| 587 | 589 | ) |
| 588 | 590 | ) : ( |
| @@ -843,8 +845,9 @@ | ||
| 843 | 845 | </span> |
| 844 | 846 | ), |
| 845 | 847 | }, |
| 846 | 848 | ], |
| 849 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 847 | 850 | [visibleColumns], |
| 848 | 851 | )} |
| 849 | 852 | actions={[ |
| 850 | 853 | { |