mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 05:05:36 +02:00
editor: disallow inserting empty embed urls/code (#9392)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -73,6 +73,7 @@ export function EmbedPopup(props: EmbedPopupProps) {
|
|||||||
onClose={() => onClose()}
|
onClose={() => onClose()}
|
||||||
action={{
|
action={{
|
||||||
title: strings.save(),
|
title: strings.save(),
|
||||||
|
disabled: src.trim() === "",
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
setError(null);
|
setError(null);
|
||||||
let _src = src;
|
let _src = src;
|
||||||
|
|||||||
Reference in New Issue
Block a user