Skip to content

Commit

Permalink
Merge branch 'feature/manage_index' of https://github.com/EhsanRezaei…
Browse files Browse the repository at this point in the history
…1981/mongo-modeler into feature/manage_index
  • Loading branch information
EhsanRezaei1981 committed Jan 20, 2025
2 parents fd89f5d + a56a0fe commit f66025a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 46 deletions.
4 changes: 2 additions & 2 deletions src/pods/edit-table/edit-table.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ export const mapTableVmToEditTableVm = (
const mapEditTableFieldsToTableVmFields = (
fields: editTableModel.FieldVm[]
): canvasModel.FieldVm[] => {
const result: canvasModel.FieldVm[] = [];
let result: canvasModel.FieldVm[] = [];

fields.forEach(field => {
const { ...editFieldVm } = field;
const { FK, ...editFieldVm } = field;
result.push({
...editFieldVm,
children: !field.children
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('isFirstItemInArray', () => {
{ id: '2', name: 'Index2', isUnique: false, sparse: false, fields: [] },
];
//Act
const firstItem = isFirstItemInArray(indexes, '1');
const firstItem = isFirstItemInArray(indexes, '2');

//Assert
expect(firstItem).toBeFalsy();
Expand Down
1 change: 0 additions & 1 deletion src/pods/toolbar/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from './toolbar-button';
export * from './theme-toggle-button';
export * from './zoom-button';
export * from './relation-button';
export * from './manage-index-button';
export * from './canvas-setting-button';
export * from './export-button';
export * from './new-button';
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/pods/toolbar/components/manage-index-button/index.ts

This file was deleted.

0 comments on commit f66025a

Please sign in to comment.