Skip to content

Commit

Permalink
ALTAPPS-1357: Fix StepQuizCodeBlanksReducer.handleSpaceButtonClicked …
Browse files Browse the repository at this point in the history
…newChildSuggestions
  • Loading branch information
ivan-magda committed Sep 18, 2024
1 parent e63831d commit a72c824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/detekt/baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@
<ID>ReturnCount:TopicsRepetitionsActionDispatcher.kt$TopicsRepetitionsActionDispatcher$override suspend fun doSuspendableAction(action: Action)</ID>
<ID>SpreadOperator:StepQuizViewStateDelegateFactory.kt$StepQuizViewStateDelegateFactory$( *listOfNotNull( fragmentStepQuizBinding.stepQuizFeedbackBlocks.root, descriptionBinding?.stepQuizDescription, fragmentStepQuizBinding.stepQuizButtons.stepQuizSubmitButton, *quizViews ).toTypedArray() )</ID>
<ID>SpreadOperator:StepQuizViewStateDelegateFactory.kt$StepQuizViewStateDelegateFactory$( *listOfNotNull( skeletonView, descriptionBinding?.stepQuizDescriptionSkeleton ).toTypedArray() )</ID>
<ID>SwallowedException:Block.kt$e: Exception</ID>
<ID>SwallowedException:NotificationExtensions.kt$e: ActivityNotFoundException</ID>
<ID>SwallowedException:ProfileSettingsDialogFragment.kt$ProfileSettingsDialogFragment$e: ActivityNotFoundException</ID>
<ID>SwallowedException:PushNotificationData.kt$PushNotificationData$e: Exception</ID>
<ID>SwallowedException:TimeIntervalPickerDialogFragment.kt$TimeIntervalPickerDialogFragment$exception: Exception</ID>
<ID>ThrowsCount:FillBlanksResolver.kt$FillBlanksResolver$@Throws(InvalidFillBlanksConfigException::class) fun resolve(dataset: Dataset): FillBlanksMode</ID>
<ID>TooGenericExceptionCaught:BaseStateRepository.kt$BaseStateRepository$e: Exception</ID>
<ID>TooGenericExceptionCaught:Block.kt$e: Exception</ID>
<ID>TooGenericExceptionCaught:LatexWebView.kt$LatexWebView$e: Exception</ID>
<ID>TooGenericExceptionCaught:PushNotificationData.kt$PushNotificationData$e: Exception</ID>
<ID>TooGenericExceptionCaught:PushNotificationsInteractor.kt$PushNotificationsInteractor$e: Exception</ID>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ class StepQuizCodeBlanksReducer(
activeChild.selectedSuggestion in state.codeBlanksOperationsSuggestions ->
state.codeBlanksVariablesSuggestions + state.codeBlanksStringsSuggestions

else -> emptyList()
else ->
state.codeBlanksOperationsSuggestions + state.codeBlanksVariablesAndStringsSuggestions
}

val newChild = CodeBlockChild.SelectSuggestion(
Expand Down

0 comments on commit a72c824

Please sign in to comment.