فهرست منبع

remove unnecessary toString

kaori 3 سال پیش
والد
کامیت
699e11e3e5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/app/src/interfaces/common.ts

+ 1 - 1
packages/app/src/interfaces/common.ts

@@ -16,6 +16,6 @@ export const isPopulated = <T>(ref: Ref<T>): ref is T & HasObjectId => {
 
 export const getIdForRef = <T>(ref: Ref<T>): string => {
   return isPopulated(ref)
-    ? ref._id.toString()
+    ? ref._id
     : ref;
 };