@@ -32,6 +32,9 @@ export const warningNotify = msg => {
* @returns
*/
export const checkBtnRole = (value, btnRole) => {
+ if (btnRole === undefined) {
+ return false
+ }
if (!btnRole) {
return true
}