Jelajahi Sumber

fix: update URL rendering logic to check for record status instead of enabled flag

Jacky 1 bulan lalu
induk
melakukan
b428bd264f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/src/views/site/site_list/columns.tsx

+ 1 - 1
app/src/views/site/site_list/columns.tsx

@@ -27,7 +27,7 @@ const columns: Column[] = [{
   dataIndex: 'urls',
   customRender: ({ text, record }) => {
     const template: JSXElements = []
-    if (record.enabled) {
+    if (record.status !== ConfigStatus.Disabled) {
       text?.forEach((url: string) => {
         const displayUrl = url.replace(/^https?:\/\//, '')
         template.push(