Skip to content

Commit d9e938b

Browse files
committed
Fix Menu bug on RTM driver
1 parent d3b08b6 commit d9e938b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SlackRTMDriver.php

+4
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ private function convertQuestion(Question $question)
133133
$questionData = $question->toArray();
134134

135135
$buttons = Collection::make($question->getButtons())->map(function ($button) {
136+
if ($button['type'] === 'select') {
137+
return $button;
138+
}
139+
136140
return array_merge([
137141
'name' => $button['name'],
138142
'text' => $button['text'],

0 commit comments

Comments
 (0)