Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions x-pack/plugins/spaces/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
}
}
},
"urlContext": {
"type": "keyword"
},
"description": {
"type": "text"
},
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/spaces/public/views/components/space_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ function renderSpaceAvatar(space) {
}

function renderSpaceDescription(space) {
let description = space.description;
const needsTruncation = space.description.length > 120;
let description = space.description || '';
const needsTruncation = description.length > 120;
if (needsTruncation) {
description = (
<span title={description}>{space.description.substr(0, 120) + '…'}</span>
<span title={description}>{description.substr(0, 120) + '…'}</span>
);
}
return <EuiTextColor className="eui-textBreakWord" color={"subdued"}>{description}</EuiTextColor>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`renders without crashing 1`] = `
isInvalid={false}
label={
<p>
URL Context
Space Identifier
<EuiLink
color="primary"
onClick={[Function]}
Expand All @@ -25,18 +25,16 @@ exports[`renders without crashing 1`] = `
</p>
}
>
<div>
<EuiFieldText
compressed={false}
fullWidth={false}
inputRef={[Function]}
isLoading={false}
onChange={[Function]}
placeholder="give your space a name to see its URL Context"
readOnly={true}
value=""
/>
</div>
<EuiFieldText
compressed={false}
fullWidth={false}
inputRef={[Function]}
isLoading={false}
onChange={[Function]}
placeholder="give your space a name to see its identifier"
readOnly={true}
value=""
/>
</EuiFormRow>
</React.Fragment>
`;
Loading