+ Rate syncs only fetch tariffs for the included categories below. If the list is + empty, fetch categories from Newbook first — otherwise syncs will do nothing. +
+ {syncCategories.isError && ( ++ {(syncCategories.error as any)?.response?.data?.detail || 'Category fetch failed'} +
+ )} + {isLoading ? ( ++ No room categories yet — click “Fetch from Newbook” to load them. +
+ ) : ( +| Included | +Category | +Rooms | +
|---|---|---|
| + toggleCategory.mutate({ id: cat.id, included: e.target.checked })} + disabled={toggleCategory.isPending} + /> + | +{cat.site_name} | +{cat.room_count} | +