File tree Expand file tree Collapse file tree 3 files changed +0
-3
lines changed Expand file tree Collapse file tree 3 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ const IssueFeaturesPanel = ({ setError }: WrappableComponentProps): JSX.Element
6060 } , [ extension ?. isNewToIssue , canEdit ] ) ;
6161
6262 // get environments from Flagsmith API
63- // TODO: Do we need to handle multiple environments? I think probably not
6463 const [ environments ] = usePromise (
6564 async ( ) => {
6665 try {
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ export const readProjectIds = async (extension: ExtensionData): Promise<string[]
100100 return stored ; // Already an array, perfect
101101 }
102102
103- // Optional: runtime safeguard
104103 throw new Error ( `Unexpected type for projectIds: ${ typeof stored } ` ) ;
105104} ;
106105
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ resolver
100100 if ( ! projectIds || projectIds . length === 0 ) return false ;
101101 const availableProjects = await readProjects ( { } ) ;
102102 const availableProjectIds = new Set ( availableProjects . map ( ( project ) => String ( project . id ) ) ) ;
103- // Ensure *every* projectId is valid
104103 return projectIds . every ( ( id : string ) => availableProjectIds . has ( id ) ) ;
105104 } )
106105 . then ( ( ) => readFeatures ( { projectIds, environmentId } ) )
You can’t perform that action at this time.
0 commit comments