We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2389a1b commit 2a8d35cCopy full SHA for 2a8d35c
lib/block_kit/concerns/has_initial_option.rb
@@ -4,7 +4,7 @@ module BlockKit
4
module Concerns
5
module HasInitialOption
6
def initial_option
7
- all_options&.reverse&.find(&:initial?)
+ all_options&.rfind(&:initial?)
8
end
9
10
def as_json(*)
0 commit comments