The use of the safe navigation operator (?.) ensures that if json.data.recentAcSubmissionList is null or undefined, the code won't attempt to call the map function on it, avoiding the error.
The nullish coalescing operator (??) is used to provide an empty array as the default value when json.data.recentAcSubmissionList is null or undefined.
Fixed error
Revision
?.
) ensures that ifjson.data.recentAcSubmissionList
is null or undefined, the code won't attempt to call themap
function on it, avoiding the error.??
) is used to provide an empty array as the default value whenjson.data.recentAcSubmissionList
is null or undefined.Resolves #48.