Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object

前端 未结 5 1281
青春惊慌失措
青春惊慌失措 2020-12-08 07:01

Below code works fine until today. But I don\'t know now it is not working and gives below error.Could you tell me why?

Error: Function DocumentRefere

5条回答
  •  爱一瞬间的悲伤
    2020-12-08 07:19

    You can stringify the object and parse to object again to remove class names of the object.

    const budgets = this.budgetProvider.createBudgets(JSON.parse(JSON.stringify(data.budgetList)), projectId);
    

提交回复
热议问题