Skip to content

Commit

Permalink
fix(RolePermission): getDocResource instead of `createDocumentResou…
Browse files Browse the repository at this point in the history
…rce`
  • Loading branch information
BreadGenie committed May 24, 2024
1 parent dd4e4b3 commit 0aec50a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dashboard/src2/components/settings/RoleConfigureDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@
</template>
<script setup>
import { createDocumentResource, Switch, Tabs } from 'frappe-ui';
import { Switch, Tabs } from 'frappe-ui';
import { computed, ref, watch } from 'vue';
import { getTeam } from '../../data/team';
import UserWithAvatarCell from '../UserWithAvatarCell.vue';
import { toast } from 'vue-sonner';
import { getDocResource } from '../../utils/resource';
import session from '../../data/session';
const props = defineProps({
Expand All @@ -115,7 +116,7 @@ const member = ref({});
const show = ref(true);
const tabIndex = ref(0);
const role = createDocumentResource({
const role = getDocResource({
doctype: 'Press Role',
name: props.roleId,
auto: true,
Expand Down

0 comments on commit 0aec50a

Please sign in to comment.