@@ -129,7 +129,6 @@ export interface IClientContext {
129
129
currentTrackList ?: ITrackCollection ;
130
130
lastTrackStartIndex ?: number ;
131
131
lastTrackEndIndex ?: number ;
132
- entityMap ?: Map < string , Entity > | undefined ;
133
132
trackListMap : Map < string , ITrackCollection > ;
134
133
trackListCount : number ;
135
134
userData ?: UserData | undefined ;
@@ -784,7 +783,6 @@ export async function handleCall(
784
783
actionIO : ActionIO ,
785
784
entityMap : Map < string , Entity > | undefined ,
786
785
) : Promise < ActionResult > {
787
- clientContext . entityMap = entityMap ;
788
786
switch ( action . actionName ) {
789
787
case "playRandom" :
790
788
return playRandomAction ( clientContext , action ) ;
@@ -1015,14 +1013,11 @@ export async function handleCall(
1015
1013
case "filterTracks" : {
1016
1014
const filterTracksAction = action as FilterTracksAction ;
1017
1015
let input = clientContext . currentTrackList ;
1018
- if (
1019
- filterTracksAction . parameters . trackListEntityId &&
1020
- clientContext . entityMap
1021
- ) {
1016
+ if ( filterTracksAction . parameters . trackListEntityId && entityMap ) {
1022
1017
console . log (
1023
1018
`entity id: ${ filterTracksAction . parameters . trackListEntityId } ` ,
1024
1019
) ;
1025
- const entity = clientContext . entityMap . get (
1020
+ const entity = entityMap . get (
1026
1021
filterTracksAction . parameters . trackListEntityId ,
1027
1022
) ;
1028
1023
if (
@@ -1083,12 +1078,12 @@ export async function handleCall(
1083
1078
1084
1079
if (
1085
1080
createPlaylistAction . parameters . trackListEntityId &&
1086
- clientContext . entityMap
1081
+ entityMap
1087
1082
) {
1088
1083
console . log (
1089
1084
`entity id: ${ createPlaylistAction . parameters . trackListEntityId } ` ,
1090
1085
) ;
1091
- const entity = clientContext . entityMap . get (
1086
+ const entity = entityMap . get (
1092
1087
createPlaylistAction . parameters . trackListEntityId ,
1093
1088
) ;
1094
1089
if (
0 commit comments