Skip to content

Commit 2efbf2e

Browse files
committed
Merge pull request #237 from amirhhashemi/refactor/remove-unneeded-var
refactor: remove unneeded variable
1 parent 69e6911 commit 2efbf2e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/dante3/src/popovers/addButton.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ const AddButton = React.forwardRef(
148148
function insertImage(file: any) {
149149
if (!file) return;
150150

151-
let opts = {
152-
url: URL.createObjectURL(file),
153-
file
154-
};
155151
// cleans input image value
156152
// @ts-ignore
157153
fileInput.current.value = "";
@@ -160,7 +156,7 @@ const AddButton = React.forwardRef(
160156
// @ts-ignore
161157
type: fileInput.current.dataset.blockType || "ImageBlock",
162158
attrs: {
163-
file: file,
159+
file,
164160
url: URL.createObjectURL(file)
165161
}
166162
});

0 commit comments

Comments
 (0)