From 08a2b5a69d00044e63b4141d81a7407e54812be3 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Mon, 12 Jul 2021 01:08:48 +0800 Subject: [PATCH] Fix adding provider UI bug. --- web/src/ProviderTable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/ProviderTable.js b/web/src/ProviderTable.js index c38cb7c9..681803e1 100644 --- a/web/src/ProviderTable.js +++ b/web/src/ProviderTable.js @@ -89,7 +89,7 @@ class ProviderTable extends React.Component { key: 'canSignUp', width: '120px', render: (text, record, index) => { - if (record.provider.category !== "OAuth") { + if (record.provider?.category !== "OAuth") { return null; } @@ -106,7 +106,7 @@ class ProviderTable extends React.Component { key: 'canSignIn', width: '120px', render: (text, record, index) => { - if (record.provider.category !== "OAuth") { + if (record.provider?.category !== "OAuth") { return null; } @@ -123,7 +123,7 @@ class ProviderTable extends React.Component { key: 'canUnlink', width: '120px', render: (text, record, index) => { - if (record.provider.category !== "OAuth") { + if (record.provider?.category !== "OAuth") { return null; } @@ -140,7 +140,7 @@ class ProviderTable extends React.Component { key: 'prompted', width: '120px', render: (text, record, index) => { - if (record.provider.category !== "OAuth") { + if (record.provider?.category !== "OAuth") { return null; }