瀏覽代碼

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

Jacky 1 月之前
父節點
當前提交
b428bd264f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(