mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
Merge pull request #1196 from makeplane/sync/10940820410
sync: community changes
This commit is contained in:
@@ -129,7 +129,7 @@ export const CommandPalette: FC = observer(() => {
|
||||
|
||||
const performProjectBulkDeleteActions = useCallback(
|
||||
(showToast: boolean = true) => {
|
||||
if (!canPerformProjectAdminActions && showToast)
|
||||
if (!canPerformProjectAdminActions && projectId && showToast)
|
||||
setToast({
|
||||
type: TOAST_TYPE.ERROR,
|
||||
title: "You don't have permission to perform this action.",
|
||||
@@ -137,7 +137,7 @@ export const CommandPalette: FC = observer(() => {
|
||||
|
||||
return canPerformProjectAdminActions;
|
||||
},
|
||||
[canPerformProjectAdminActions]
|
||||
[canPerformProjectAdminActions, projectId]
|
||||
);
|
||||
|
||||
const performWorkspaceCreateActions = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user