Fix adding provider UI bug.

This commit is contained in:
Yang Luo
2021-07-12 01:08:48 +08:00
parent 2e5602d4c1
commit 08a2b5a69d

View File

@ -89,7 +89,7 @@ class ProviderTable extends React.Component {
key: 'canSignUp', key: 'canSignUp',
width: '120px', width: '120px',
render: (text, record, index) => { render: (text, record, index) => {
if (record.provider.category !== "OAuth") { if (record.provider?.category !== "OAuth") {
return null; return null;
} }
@ -106,7 +106,7 @@ class ProviderTable extends React.Component {
key: 'canSignIn', key: 'canSignIn',
width: '120px', width: '120px',
render: (text, record, index) => { render: (text, record, index) => {
if (record.provider.category !== "OAuth") { if (record.provider?.category !== "OAuth") {
return null; return null;
} }
@ -123,7 +123,7 @@ class ProviderTable extends React.Component {
key: 'canUnlink', key: 'canUnlink',
width: '120px', width: '120px',
render: (text, record, index) => { render: (text, record, index) => {
if (record.provider.category !== "OAuth") { if (record.provider?.category !== "OAuth") {
return null; return null;
} }
@ -140,7 +140,7 @@ class ProviderTable extends React.Component {
key: 'prompted', key: 'prompted',
width: '120px', width: '120px',
render: (text, record, index) => { render: (text, record, index) => {
if (record.provider.category !== "OAuth") { if (record.provider?.category !== "OAuth") {
return null; return null;
} }