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

marked 'not for publication' invisible publish tab #4356

Conversation

dzonidoo
Copy link
Collaborator

@dzonidoo dzonidoo commented Nov 2, 2023

SDESK-7079

@petrjasek petrjasek added this to the 2.7 milestone Nov 2, 2023
@dzonidoo dzonidoo requested a review from tomaskikutis November 7, 2023 12:08
@@ -73,14 +73,16 @@ export class InteractiveArticleActionsPanel
const {activeTab} = this.state;
const markupV2 = authoringReactViewEnabled && this.props.markupV2 === true;
const handleUnsavedChanges = this.props.handleUnsavedChanges ?? handleUnsavedChangesDefault;
const item = items[0];
Copy link
Member

Choose a reason for hiding this comment

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

Even though items[0] is used in multiple places it's not correct to declare it at the top of the scope, because you would confuse other developers on why are you checking only first item when this component supports multiple.

@dzonidoo dzonidoo merged commit 352a7a9 into superdesk:authoring-react-post-broadcasting Nov 8, 2023
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants