File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -585,11 +585,8 @@ const getWorkspacePrFileCommits = () =>
585585
586586const getEditorSyncTargets = ( ) => workspaceSyncController . getEditorSyncTargets ( )
587587
588- const reconcileWorkspaceTabsWithEditorSync = ( { componentPath, stylesPath } = { } ) =>
589- workspaceSyncController . reconcileWorkspaceTabsWithEditorSync ( {
590- componentPath,
591- stylesPath,
592- } )
588+ const reconcileWorkspaceTabsWithEditorSync = ( { tabTargets } = { } ) =>
589+ workspaceSyncController . reconcileWorkspaceTabsWithEditorSync ( { tabTargets } )
593590
594591const buildWorkspaceRecordSnapshot = ( { recordId } = { } ) =>
595592 workspaceSyncController . buildWorkspaceRecordSnapshot ( { recordId } )
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ export const createGitHubPrEditorSyncController = ({
2525 const tabTargets = Array . isArray ( syncTargets ?. tabTargets )
2626 ? syncTargets . tabTargets
2727 : [ ]
28- const componentPath = toSafeText (
28+ const componentTabPath = toSafeText (
2929 tabTargets . find ( target => toSafeText ( target ?. kind ) === 'component' ) ?. path ,
3030 )
31- const stylesPath = toSafeText (
31+ const stylesTabPath = toSafeText (
3232 tabTargets . find ( target => toSafeText ( target ?. kind ) === 'styles' ) ?. path ,
3333 )
3434
35- if ( ! token || ! owner || ! repo || ! branch || ! componentPath || ! stylesPath ) {
35+ if ( ! token || ! owner || ! repo || ! branch || ! componentTabPath || ! stylesTabPath ) {
3636 return {
3737 synced : false ,
3838 componentSynced : false ,
@@ -44,19 +44,19 @@ export const createGitHubPrEditorSyncController = ({
4444 token,
4545 owner,
4646 repo,
47- path : componentPath ,
47+ path : componentTabPath ,
4848 ref : branch ,
4949 signal,
5050 } )
5151
5252 const stylesRequest =
53- stylesPath === componentPath
53+ stylesTabPath === componentTabPath
5454 ? componentRequest
5555 : getRepositoryFileContent ( {
5656 token,
5757 owner,
5858 repo,
59- path : stylesPath ,
59+ path : stylesTabPath ,
6060 ref : branch ,
6161 signal,
6262 } )
@@ -90,7 +90,7 @@ export const createGitHubPrEditorSyncController = ({
9090 stylesSynced = true
9191 }
9292
93- if ( stylesPath === componentPath ) {
93+ if ( stylesTabPath === componentTabPath ) {
9494 stylesSynced = componentSynced
9595 }
9696
You can’t perform that action at this time.
0 commit comments