fix: update docs api to match studio (#21862)

* fix: update branch docs to match latest api

* fix: type errors
This commit is contained in:
Han Qiao
2024-03-08 11:44:34 +08:00
committed by GitHub
parent 24ac4adb79
commit e10dd0cf2f
4 changed files with 1072 additions and 450 deletions

View File

@@ -58,7 +58,7 @@ const projectsStore = proxy({
selectedProject: null as Project | null,
setSelectedOrgProject: (org: Org | null, project: Project | null) => {
projectsStore.selectedOrg = org
storeOrRemoveNull('local', LOCAL_STORAGE_KEYS.SAVED_ORG, org?.id)
storeOrRemoveNull('local', LOCAL_STORAGE_KEYS.SAVED_ORG, org?.id.toString())
projectsStore.selectedProject = project
// @ts-ignore -- problem in OpenAPI spec -- project has ref property