Skip to content

Commit

Permalink
chore(core): remove releaseStack from releasesStore
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Dec 9, 2024
1 parent 4f2194b commit 094559a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const QUERY = `*[${QUERY_FILTER}] ${QUERY_PROJECTION} | ${QUERY_SORT_ORDER}`
const INITIAL_STATE: ReleasesReducerState = {
releases: new Map(),
state: 'initialising' as const,
releaseStack: [],
}

const RELEASE_METADATA_TMP_DOC_PATH = 'system-tmp-releases'
Expand Down
6 changes: 0 additions & 6 deletions packages/sanity/src/core/releases/store/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ export interface ReleasesReducerState {
releases: Map<string, ReleaseDocument>
state: 'initialising' | 'loading' | 'loaded' | 'error'
error?: Error

/**
* An array of release ids ordered chronologically to represent the state of documents at the
* given point in time.
*/
releaseStack: string[]
}

function createReleasesSet(releases: ReleaseDocument[] | null) {
Expand Down

0 comments on commit 094559a

Please sign in to comment.