File tree Expand file tree Collapse file tree
packages/components/src/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -603,6 +603,7 @@ export interface SelectionResponse {
603603 selected : any [ ] ;
604604}
605605
606+ // TODO: remove
606607export async function getSelection (
607608 searchParams : URLSearchParams ,
608609 schemaName ?: string ,
@@ -612,14 +613,12 @@ export async function getSelection(
612613 if ( selectionKey ) {
613614 let { keys, schemaQuery } = SchemaQuery . parseSelectionKey ( selectionKey ) ;
614615
615- if ( keys !== undefined ) {
616+ if ( keys !== undefined && keys !== '' ) {
616617 return { resolved : true , schemaQuery, selected : keys . split ( ';' ) } ;
617618 }
618619
619- if ( ! schemaQuery ) {
620- if ( schemaName && queryName ) {
621- schemaQuery = new SchemaQuery ( schemaName , queryName ) ;
622- }
620+ if ( ! schemaQuery && schemaName && queryName ) {
621+ schemaQuery = new SchemaQuery ( schemaName , queryName ) ;
623622 }
624623
625624 if ( ! schemaQuery ) {
You can’t perform that action at this time.
0 commit comments