| if (item.type === 'github') { | if (item.type === 'github') { | ||||
| const data = item as GitHubItemAndMarketPlaceDependency | const data = item as GitHubItemAndMarketPlaceDependency | ||||
| // From local bundle don't have data.value.github_plugin_unique_identifier | // From local bundle don't have data.value.github_plugin_unique_identifier | ||||
| if (!data.value.github_plugin_unique_identifier) { | |||||
| uniqueIdentifier = data.value.github_plugin_unique_identifier! | |||||
| if (!uniqueIdentifier) { | |||||
| const { unique_identifier } = await post<uploadGitHubResponse>('/workspaces/current/plugin/upload/github', { | const { unique_identifier } = await post<uploadGitHubResponse>('/workspaces/current/plugin/upload/github', { | ||||
| body: { | body: { | ||||
| repo: data.value.repo!, | repo: data.value.repo!, |