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

This commit is contained in:
Jacky 2025-04-07 12:26:35 +00:00
parent 587d7c24cb
commit b428bd264f
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

@ -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(