Skip to content

Commit c4a77a9

Browse files
authored
Update url_card.dart
1 parent 8f0de89 commit c4a77a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/screens/home_page/editor_pane/url_card.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class URLTextField extends ConsumerWidget {
7070

7171
@override
7272
Widget build(BuildContext context, WidgetRef ref) {
73-
final activeId = ref.watch(activeIdStateProvider);
73+
final selectedId = ref.watch(selectedIdStateProvider);
7474
return Focus(
7575
autofocus: true,
7676
child: KeyboardListener(
@@ -80,19 +80,19 @@ class URLTextField extends ConsumerWidget {
8080
event.logicalKey == LogicalKeyboardKey.enter) {
8181
ref
8282
.read(collectionStateNotifierProvider.notifier)
83-
.sendRequest(activeId);
83+
.sendRequest(selectedId);
8484
}
8585
},
8686
child: URLField(
87-
activeId: activeId!,
87+
selectedId: selectedId!,
8888
initialValue: ref
8989
.read(collectionStateNotifierProvider.notifier)
90-
.getRequestModel(activeId)
90+
.getRequestModel(selectedId)
9191
?.url,
9292
onChanged: (value) {
9393
ref
9494
.read(collectionStateNotifierProvider.notifier)
95-
.update(activeId, url: value);
95+
.update(selectedId, url: value);
9696
},
9797
),
9898
));

0 commit comments

Comments
 (0)