fix: use useInjectionState instead of inject context

This commit is contained in:
Ramesh Mane
2026-02-20 10:35:31 +00:00
parent 40005a3af0
commit f88c209bc8
4 changed files with 15 additions and 65 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { useBaseActions } from './useBaseActions'
import { useBaseActionsOrThrow } from './useBaseActions'
const props = defineProps<{
base: NcProject
@@ -11,7 +11,7 @@ const props = defineProps<{
// Get actions from provider
const { onRename, onToggleStarred, onDuplicate, onOpenErd, onOpenSettings, onDelete, onUpdateColor, onSelect } =
useBaseActions()
useBaseActionsOrThrow()
const { isUIAllowed } = useRoles()
const { $e } = useNuxtApp()