- Issue created by @hooroomoo
Discovered when testing
π
Link Publish errors to the page + component instance that's causing the error
Active
. The source the pointer value is sometimes inconsistent. See screenshot below. This the source.pointer starts with model
for the first and starts with components
for the second.
1. Create the code component below. Text and link required prop.
2. Click add to components.
3. Add two instances of the component on the page (xb_page).
4. Edit the url prop to be empty on both of the instances that are on the page (Wait for auto-save).
5. Publish the xb_page that the 2 components are on.
6. View publish error response.
Code component used:
uuid: 6c21e124-4d78-408b-8896-1a26a28bcbdc
langcode: en
status: true
dependencies: { }
machineName: c1
name: c1
required:
- text
- url
props:
text:
title: text
type: string
examples:
- hello
url:
title: url
type: string
examples:
- 'https://www.hello.com'
format: uri
slots: { }
js:
original: |
// See https://project.pages.drupalcode.org/experience_builder/ for documentation on how to build a code component
const Component = ({
text,
url,
}) => {
return (
<div className="text-3xl">
{text}
<br></br>
{url}
</div>
);
};
export default Component;
compiled: |
// See https://project.pages.drupalcode.org/experience_builder/ for documentation on how to build a code component
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const Component = ({ text, url })=>{
return /*#__PURE__*/ _jsxs("div", {
className: "text-3xl",
children: [
text,
/*#__PURE__*/ _jsx("br", {}),
url
]
});
};
export default Component;
css:
original: ''
compiled: ''
Should be consistent