refactor: introduce empty placeholder

This commit is contained in:
Carlos Valente
2024-12-27 21:30:52 +01:00
committed by Carlos Valente
parent 44f65b2fcc
commit 617e4b579b
3 changed files with 32 additions and 2 deletions
@@ -149,6 +149,7 @@ export default function UrlPresetsForm() {
</tr>
</thead>
<tbody>
{fields.length === 0 && <Panel.TableEmpty handleClick={addNew} />}
{fields.map((preset, index) => {
const maybeAliasError = errors.data?.[index]?.alias?.message;
const maybeUrlError = errors.data?.[index]?.pathAndParams?.message;