mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-08 22:31:01 +00:00
Only read scope from search actions
This commit is contained in:
@@ -47,7 +47,11 @@ export function InlineButton(props: InlineProps<api.DocumentInlineButton>) {
|
||||
<InlineActionButton
|
||||
action={inline.data.action.action}
|
||||
query={inline.data.action.query ?? ''}
|
||||
scope={inline.data.action.scope}
|
||||
scope={
|
||||
inline.data.action.action === 'search'
|
||||
? inline.data.action.scope
|
||||
: undefined
|
||||
}
|
||||
buttonProps={buttonProps}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user