|
37 | 37 | branchName
|
38 | 38 | );
|
39 | 39 |
|
40 |
| - let editableSteps = $derived(initialIntegrationSteps.current?.data ?? []); |
| 40 | + let editableSteps = $derived(initialIntegrationSteps.response ?? []); |
41 | 41 |
|
42 | 42 | // Constants
|
43 | 43 | const FLIP_ANIMATION_DURATION = 150;
|
|
369 | 369 | {@const isSquashStep = step.type === 'squash'}
|
370 | 370 | {@const isIndividualStep = step.type === 'pick' || step.type === 'skip'}
|
371 | 371 | {#if isSquashStep}
|
372 |
| - {@const commitsResult = stackService.commitsByIds(projectId, stackId, step.subject.commits)} |
373 |
| - <ReduxResult {projectId} result={commitsResult.current}> |
| 372 | + {@const commitsQuery = stackService.commitsByIds(projectId, stackId, step.subject.commits)} |
| 373 | + <ReduxResult {projectId} result={commitsQuery.result}> |
374 | 374 | {#snippet children(commits)}
|
375 | 375 | {#each commits as commit, commitIndex (commit.id)}
|
376 | 376 | {@const isLastCommit = commitIndex === commits.length - 1}
|
|
394 | 394 | </ReduxResult>
|
395 | 395 | {:else if isIndividualStep}
|
396 | 396 | {@const commitDetails = stackService.commitById(projectId, stackId, step.subject.commitId)}
|
397 |
| - <ReduxResult {projectId} result={commitDetails.current}> |
| 397 | + <ReduxResult {projectId} result={commitDetails.result}> |
398 | 398 | {#snippet children(commit)}
|
399 | 399 | {@const isSkipStep = step.type === 'skip'}
|
400 | 400 | <div class="branch-integration__commit" class:skipped={isSkipStep}>
|
|
412 | 412 | {:else if step.type === 'pickUpstream'}
|
413 | 413 | {@const commitDetails = stackService.commitDetails(projectId, step.subject.upstreamCommitId)}
|
414 | 414 | {@const localCommitDetails = stackService.commitById(projectId, stackId, step.subject.commitId)}
|
415 |
| - <ReduxResult {projectId} result={commitDetails.current}> |
| 415 | + <ReduxResult {projectId} result={commitDetails.result}> |
416 | 416 | {#snippet loading()}
|
417 | 417 | <!-- Show local commit data while loading upstream commit to prevent flickering -->
|
418 |
| - <ReduxResult {projectId} result={localCommitDetails.current}> |
| 418 | + <ReduxResult {projectId} result={localCommitDetails.result}> |
419 | 419 | {#snippet children(localCommit)}
|
420 | 420 | <div class="branch-integration__commit">
|
421 | 421 | {@render commitItemTemplate(
|
|
0 commit comments