Parcourir la source

remove unnecessary toString

kaori il y a 3 ans
Parent
commit
699e11e3e5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 => {
 export const getIdForRef = <T>(ref: Ref<T>): string => {
   return isPopulated(ref)
   return isPopulated(ref)
-    ? ref._id.toString()
+    ? ref._id
     : ref;
     : ref;
 };
 };