Skip to content

Commit 769ee0e

Browse files
authored
Merge pull request #18 from SwapnilTechVariable/bug/permission-add-role
minor issue fix in add new role
2 parents 9a02568 + ea06fd9 commit 769ee0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/permissionPage/permission-editor/permission-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class PermissionEditor {
4343
try {
4444
const rolePermissionsResp = await axios.get(`${this.url}/?roleId=${roleId}`);
4545

46-
let transaction = this.view.state.update({ changes: { from: 0, insert: `${formatJSON(rolePermissionsResp.data)}` } });
46+
let transaction = this.view.state.update({ changes: { from: 0,to: this.view.state.doc.toString().length, insert: `${formatJSON(rolePermissionsResp.data)}` } });
4747
this.view.dispatch(transaction);
4848
} catch (error) {
4949
console.log(error);

0 commit comments

Comments
 (0)