Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/edit mode doble link #1101

Merged

Conversation

RodriSanchez1
Copy link
Collaborator

close #1088 and close #1070

@martinbedouret martinbedouret added this to the 1.17.0 milestone Dec 20, 2021
@@ -1614,7 +1614,12 @@ export class BoardContainer extends Component {
onClose={this.handleTileEditorCancel}
onEditSubmit={this.handleEditTileEditorSubmit}
onAddSubmit={this.handleAddTileEditorSubmit}
boards={this.props.boards}
boards={this.props.boards.filter(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this Looks incorrect to me. The boards included in the default cboard are not owned by the user who logged in. You should not filter boards.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you dont filter, the select will show all the boards in boards state. That contains the boards created before the user log in and the boards created after the user log in. The filter takes only the user boards.
image
In the image you can see two home boards. You can check this issue, its a similar problem #1102

@@ -414,12 +412,19 @@ export class TileEditor extends Component {
this.updateTileProperty('image', image);
};

linkedBoard = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to me, the linked board looks an internal state of the component.

@martinbedouret martinbedouret merged commit 7b0ed7b into cboard-org:master Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit tile - Link an existing board dont work properly Double Link to an existing board shows in editing mode
2 participants