🐛 Fix focus after selecting mark in text editor

This commit is contained in:
Baptiste Arnaud
2023-03-21 18:26:39 +01:00
parent a41c65f528
commit 02d25d0fc7
6 changed files with 456 additions and 270 deletions

View File

@@ -81,3 +81,9 @@ export const canPublishFileInput = async ({
}
return true
}
export const isUniqueConstraintError = (error: unknown) =>
typeof error === 'object' &&
error &&
'code' in error &&
error.code === 'P2002'