Skip to content

Commit

Permalink
fix: updated ui based on the state of the job
Browse files Browse the repository at this point in the history
  • Loading branch information
aap01 committed Oct 13, 2024
1 parent b640a92 commit 3f7849e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ui/lib/feature/gseet_input/presentation/home_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ class HomeWidget extends StatelessWidget {
Expanded(
child: BlocBuilder<JobQueueBloc, JobQueueState>(
bloc: jobListBloc,
buildWhen: (prev, cur) {
return prev != cur;
},
builder: (context, state) {
return state.when(
initial: () => const SizedBox.shrink(),
Expand Down
4 changes: 4 additions & 0 deletions ui/lib/feature/shared/presentation/bloc/job_queue_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class JobQueueState with _$JobQueueState {
const factory JobQueueState.update({
required List<JobQueueItem> jobQueueItemList,
}) = _update;

@override
bool operator ==(Object other) =>
other is JobQueueState && identical(other, this);
}

@Injectable()
Expand Down

0 comments on commit 3f7849e

Please sign in to comment.