I have the following line
shareViewMetadata.sharedWith = [sharedWith.find((recipient) => (recipient.id = userId)) as UserView];
That gets the linting error: Arrow function should not return assignment no-return-assign How could I fix it?
I have the following line
shareViewMetadata.sharedWith = [sharedWith.find((recipient) => (recipient.id = userId)) as UserView];
That gets the linting error: Arrow function should not return assignment no-return-assign How could I fix it?