remove toasts
This commit is contained in:
parent
a2a9bef1d8
commit
5782df7350
|
|
@ -433,7 +433,6 @@ export function Timeline() {
|
|||
// Action handlers for toolbar
|
||||
const handleSplitSelected = () => {
|
||||
if (selectedElements.length === 0) {
|
||||
toast.error("No elements selected");
|
||||
return;
|
||||
}
|
||||
let splitCount = 0;
|
||||
|
|
@ -459,7 +458,6 @@ export function Timeline() {
|
|||
|
||||
const handleDuplicateSelected = () => {
|
||||
if (selectedElements.length === 0) {
|
||||
toast.error("No elements selected");
|
||||
return;
|
||||
}
|
||||
const canDuplicate = selectedElements.length === 1;
|
||||
|
|
@ -553,7 +551,6 @@ export function Timeline() {
|
|||
|
||||
const handleDeleteSelected = () => {
|
||||
if (selectedElements.length === 0) {
|
||||
toast.error("No elements selected");
|
||||
return;
|
||||
}
|
||||
selectedElements.forEach(({ trackId, elementId }) => {
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@ export function useEditorActions() {
|
|||
|
||||
useActionHandler("delete-selected", () => {
|
||||
if (selectedElements.length === 0) {
|
||||
toast.error("No elements selected");
|
||||
return;
|
||||
}
|
||||
selectedElements.forEach(
|
||||
|
|
|
|||
Loading…
Reference in New Issue