@@ -199,8 +199,8 @@ export const createQueries = getCreateFunction((store: Store): Queries => {
199199 resetPreStores ( queryId ) ;
200200
201201 const selectEntries : [ Id , SelectClause ] [ ] = [ ] ;
202- const joinEntries : [ IdOrNull , JoinClause ] [ ] = [
203- [ null , [ tableId , null , null , [ ] , mapNew ( ) ] ] ,
202+ const joinEntries : [ Id | undefined , JoinClause ] [ ] = [
203+ [ undefined , [ tableId , null , null , [ ] , mapNew ( ) ] ] ,
204204 ] ;
205205 const wheres : WhereClause [ ] = [ ] ;
206206 const groupEntries : [ Id , GroupClause ] [ ] = [ ] ;
@@ -226,7 +226,7 @@ export const createQueries = getCreateFunction((store: Store): Queries => {
226226 arg2 ?: Id | ( ( getCell : GetCell , rowId : Id ) => Id | undefined ) ,
227227 ) => {
228228 const fromIntermediateJoinedTableId =
229- isUndefined ( arg2 ) || isFunction ( arg1 ) ? null : arg1 ;
229+ isUndefined ( arg2 ) || isFunction ( arg1 ) ? undefined : arg1 ;
230230 const onArg = isUndefined ( fromIntermediateJoinedTableId ) ? arg1 : arg2 ;
231231 const joinEntry : [ Id , JoinClause ] = [
232232 joinedTableId ,
@@ -296,7 +296,7 @@ export const createQueries = getCreateFunction((store: Store): Queries => {
296296 if ( collIsEmpty ( selects ) ) {
297297 return queries ;
298298 }
299- const joins : Map < IdOrNull , JoinClause > = mapNew ( joinEntries ) ;
299+ const joins : Map < Id | undefined , JoinClause > = mapNew ( joinEntries ) ;
300300 mapForEach ( joins , ( asTableId , [ , fromAsTableId ] ) =>
301301 ifNotUndefined ( mapGet ( joins , fromAsTableId ) , ( { 3 : toAsTableIds } ) =>
302302 isUndefined ( asTableId ) ? 0 : arrayPush ( toAsTableIds , asTableId ) ,
@@ -542,7 +542,7 @@ export const createQueries = getCreateFunction((store: Store): Queries => {
542542 writeSelectRow ( rootRowId ) ;
543543 } ;
544544
545- const { 3 : joinedTableIds } = mapGet ( joins , null ) as JoinClause ;
545+ const { 3 : joinedTableIds } = mapGet ( joins , undefined ) as JoinClause ;
546546 selectJoinWhereStore . transaction ( ( ) =>
547547 addStoreListeners (
548548 queryId ,
0 commit comments