PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
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 2.0.1 All 84 releases
← All changes | resources/js/components/common/BookingPicker.tsx +2 -3 3.0.4 → 3.0.16 View file →
@@ -122,11 +122,9 @@
122 122 setResults(list);
123 123 })
124 124 .catch((err: any) => {
125 125 if (reqId !== requestIdRef.current) return;
126 - setLoadError(
127 - err?.message || __("Failed to load bookings.", "yatra"),
128 - );
126 + setLoadError(err?.message || __("Failed to load bookings.", "yatra"));
129 127 setResults([]);
130 128 })
131 129 .finally(() => {
132 130 if (reqId === requestIdRef.current) {
@@ -164,8 +162,9 @@
164 162
165 163 return () => {
166 164 cancelled = true;
167 165 };
166 + // eslint-disable-next-line react-hooks/exhaustive-deps
168 167 }, [value]);
169 168
170 169 // Close on outside click.
171 170 useEffect(() => {