fix: make important true by default

This commit is contained in:
LeoYuan 袁力皓 2022-03-21 16:44:29 +08:00
parent 794f391ce7
commit c63b6e1bfa

View File

@ -98,7 +98,7 @@ class Toolbar extends Component<{ observed: OffsetObserver }> {
const { node } = observed;
const actions: ReactNodeArray = [];
node.componentMeta.availableActions.forEach((action) => {
const { important, condition, content, name } = action;
const { important = true, condition, content, name } = action;
if (node.isSlot() && (name === 'copy' || name === 'remove')) {
// FIXME: need this?
return;