Fixed wb toolbar console warnings cause by improper props validation
This commit is contained in:
parent
76bcdd55d6
commit
ab95c87f48
0
bigbluebutton-html5/imports/api/2.0/presentations/server/handlers/presentationConversionUpdate.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/presentations/server/handlers/presentationConversionUpdate.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/presentations/server/methods/removePresentation.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/presentations/server/methods/removePresentation.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/presentations/server/methods/setPresentation.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/presentations/server/methods/setPresentation.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/users/server/eventHandlers.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/users/server/eventHandlers.js
Executable file → Normal file
4
bigbluebutton-html5/imports/api/2.0/users/server/handlers/changeRole.js
Executable file → Normal file
4
bigbluebutton-html5/imports/api/2.0/users/server/handlers/changeRole.js
Executable file → Normal file
@ -2,8 +2,7 @@ import Logger from '/imports/startup/server/logger';
|
||||
import { check } from 'meteor/check';
|
||||
import Users from '/imports/api/2.0/users';
|
||||
|
||||
export default function handleChangeRole({body}, meetingId) {
|
||||
|
||||
export default function handleChangeRole({ body }, meetingId) {
|
||||
const { userId, role, changedBy } = body;
|
||||
|
||||
check(userId, String);
|
||||
@ -32,5 +31,4 @@ export default function handleChangeRole({body}, meetingId) {
|
||||
};
|
||||
|
||||
return Users.update(selector, modifier, cb);
|
||||
|
||||
}
|
||||
|
0
bigbluebutton-html5/imports/api/2.0/users/server/methods.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/users/server/methods.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/users/server/methods/changeRole.js
Executable file → Normal file
0
bigbluebutton-html5/imports/api/2.0/users/server/methods/changeRole.js
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/component.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/container.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/container.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/service.js
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/service.js
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/styles.scss
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/styles.scss
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/component.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/component.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/container.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/container.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/service.js
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/service.js
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-item/component.jsx
Executable file → Normal file
0
bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-item/component.jsx
Executable file → Normal file
@ -23,20 +23,23 @@ export default createContainer(() => ({
|
||||
|
||||
|
||||
WhiteboardOverlayContainer.propTypes = {
|
||||
drawSettings: PropTypes.shape({
|
||||
// Annotation color
|
||||
color: PropTypes.number.isRequired,
|
||||
// Annotation thickness (not normalized)
|
||||
thickness: PropTypes.number.isRequired,
|
||||
// The name of the tool currently selected
|
||||
tool: PropTypes.string.isRequired,
|
||||
// Font size for the text shape
|
||||
textFontSize: PropTypes.number.isRequired,
|
||||
// Current active text shape value
|
||||
textShapeValue: PropTypes.string.isRequired,
|
||||
// Text active text shape id
|
||||
textShapeActiveId: PropTypes.string.isRequired,
|
||||
}),
|
||||
drawSettings: PropTypes.oneOfType([
|
||||
PropTypes.shape({
|
||||
// Annotation color
|
||||
color: PropTypes.number.isRequired,
|
||||
// Annotation thickness (not normalized)
|
||||
thickness: PropTypes.number.isRequired,
|
||||
// The name of the tool currently selected
|
||||
tool: PropTypes.string.isRequired,
|
||||
// Font size for the text shape
|
||||
textFontSize: PropTypes.number.isRequired,
|
||||
// Current active text shape value
|
||||
textShapeValue: PropTypes.string.isRequired,
|
||||
// Text active text shape id
|
||||
textShapeActiveId: PropTypes.string.isRequired,
|
||||
}),
|
||||
PropTypes.object.isRequired,
|
||||
]),
|
||||
};
|
||||
|
||||
WhiteboardOverlayContainer.defaultProps = {
|
||||
|
@ -130,5 +130,5 @@ ToolbarSubmenu.propTypes = {
|
||||
}),
|
||||
]).isRequired,
|
||||
label: PropTypes.string.isRequired,
|
||||
customIcon: PropTypes.node.isRequired,
|
||||
customIcon: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user