mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
clipper: hide clip preview button when there's no clip data (#3772)
This commit is contained in:
@@ -306,7 +306,7 @@ export function Main() {
|
|||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{clipData && !isClipping && (
|
{clipData && clipData.data && !isClipping && (
|
||||||
<Text
|
<Text
|
||||||
variant="body"
|
variant="body"
|
||||||
sx={{
|
sx={{
|
||||||
@@ -322,7 +322,6 @@ export function Main() {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (!clipData) return;
|
|
||||||
const winUrl = URL.createObjectURL(
|
const winUrl = URL.createObjectURL(
|
||||||
new Blob(["\ufeff", clipData.data], { type: "text/html" })
|
new Blob(["\ufeff", clipData.data], { type: "text/html" })
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user