Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ class EditAIRequestPane extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final selectedId = ref.watch(selectedIdStateProvider);
final codePaneVisible = ref.watch(codePaneVisibleStateProvider);
final tabIndex = ref.watch(
var tabIndex = ref.watch(
selectedRequestModelProvider.select((value) => value?.requestTabIndex));

if (tabIndex >= 3) {
tabIndex = 0;
}

return RequestPane(
selectedId: selectedId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ class EditGraphQLRequestPane extends ConsumerWidget {
final hasAuth = ref.watch(selectedRequestModelProvider.select((value) =>
value?.httpRequestModel?.authModel?.type != APIAuthType.none));

if (tabIndex >= 3) {
if (tabIndex >= 4) {
tabIndex = 0;
}

return RequestPane(
selectedId: selectedId,
codePaneVisible: codePaneVisible,
Expand Down