feat: sanitize service detail display in TableProductAndService component
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
This commit is contained in:
parent
78a59e277f
commit
5e155cfb0c
1 changed files with 4 additions and 1 deletions
|
|
@ -251,7 +251,10 @@ function selectedIndex(item: any) {
|
|||
>
|
||||
<!-- NOTE: custom column will starts with # -->
|
||||
<template v-if="!col.name.startsWith('#')">
|
||||
<span>
|
||||
<span v-if="col.name === 'serviceDetail'">
|
||||
{{ props.row.detail.replace(/<\/?[^>]+(>|$)/g, '') || '-' }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{
|
||||
typeof col.field === 'string'
|
||||
? props.row[col.field as keyof (Product | Service)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue