mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: should get state instead of props
This commit is contained in:
parent
5abbd28596
commit
984204f167
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ import GitHubHelper, {
|
|||
import configHelper from 'utils/configHelper'
|
||||
import URLHelper from 'utils/URLHelper'
|
||||
import keyHelper from 'utils/keyHelper'
|
||||
import { MethodCreator, DispatchState, TriggerOtherMethod } from 'driver/connect'
|
||||
import { MethodCreator } from 'driver/connect'
|
||||
import { Props } from 'components/SideBar'
|
||||
import SettingsBar from 'components/SettingsBar'
|
||||
|
||||
|
|
@ -150,7 +150,7 @@ const handleError: MethodCreator = dispatch => async err => {
|
|||
}
|
||||
|
||||
const onPJAXEnd: MethodCreator<ConnectorState> = dispatch => () => {
|
||||
dispatch.get(({ metaData, copyFileButton, copySnippetButton }) => {
|
||||
dispatch.get((_, { metaData, copyFileButton, copySnippetButton }) => {
|
||||
DOMHelper.unmountTopProgressBar()
|
||||
DOMHelper.decorateGitHubPageContent({ copyFileButton, copySnippetButton })
|
||||
const mergedMetaData = { ...metaData, ...URLHelper.parse() }
|
||||
|
|
|
|||
Loading…
Reference in a new issue