mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
Prevent double image addition
This commit is contained in:
parent
3f7dcc8d2c
commit
b4232e5fd6
@ -147,6 +147,7 @@ class TextEditor extends React.Component {
|
||||
for (let index in items) {
|
||||
let item = items[index];
|
||||
if (item.kind === 'file') {
|
||||
event.preventDefault();
|
||||
let blob = item.getAsFile();
|
||||
let reader = new FileReader();
|
||||
reader.onload = (event) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user