PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.17
Yatra – Travel Booking & Tour Operator Software v3.0.17
3.0.17 3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 All 85 releases
← All changes | resources/js/pages/Categories.tsx +3 -1 3.0.3 → 3.0.17 View file →
@@ -163,8 +163,9 @@
163 163 );
164 164 },
165 165 });
166 166
167 + // eslint-disable-next-line react-hooks/exhaustive-deps
167 168 const categories = data?.data || [];
168 169 const total = data?.total || 0;
169 170 const totalPages = Math.ceil(total / 50);
170 171 const errorContext = getErrorContext(error);
@@ -389,9 +390,9 @@
389 390 } catch (error) {
390 391 return null;
391 392 }
392 393 },
393 - enabled: can("manage_yatra"),
394 + enabled: can("yatra_access_admin"),
394 395 staleTime: 5 * 60 * 1000, // Cache for 5 minutes
395 396 });
396 397
397 398 // Expand all parent categories that have subcategories by default
@@ -758,8 +759,9 @@
758 759 sortable: true,
759 760 visible: visibleColumns.created_at,
760 761 },
761 762 ],
763 + // eslint-disable-next-line react-hooks/exhaustive-deps
762 764 [visibleColumns],
763 765 );
764 766
765 767 // Status mutation for individual actions