Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
890
Issues
890
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
aa71ff28
Commit
aa71ff28
authored
1 hour ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed null images causing error
parent
cbabacd1
fix/blogs-image-select-1791
1 merge request
!531
[Sprint/ModestMonkey](fix): Return void if there is no selected or deselected image
Pipeline
#79793960
passed with stages
in 51 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
embed-image.plugin.ts
...p/common/components/editors/plugins/embed-image.plugin.ts
+2
-2
No files found.
src/app/common/components/editors/plugins/embed-image.plugin.ts
View file @
aa71ff28
...
...
@@ -237,7 +237,7 @@ export class EmbedImage {
public
selectImage
(
e
)
{
let
$image
=
e
.
target
;
if
(
!
$image
||
!
$image
.
tagname
)
{
if
(
!
$image
||
$image
.
tagname
===
null
)
{
return
;
}
...
...
@@ -274,7 +274,7 @@ export class EmbedImage {
let
$el
=
e
.
target
,
$image
=
document
.
querySelector
(
'
.medium-insert-image-active
'
);
if
(
!
$
el
||
!
$el
.
tagname
)
{
if
(
!
$
image
||
!
$el
||
$el
.
tagname
===
null
)
{
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment