nodebb-plugin-composer-default 10.0.6 → 10.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +7 -0
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -105,6 +105,13 @@ plugin.getFormattingOptions = async function () {
|
|
|
105
105
|
|
|
106
106
|
payload = await plugins.hooks.fire('filter:composer.formatting', payload);
|
|
107
107
|
|
|
108
|
+
payload.options.forEach((option) => {
|
|
109
|
+
option.visibility = {
|
|
110
|
+
...defaultVisibility,
|
|
111
|
+
...option.visibility || {},
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
|
|
108
115
|
return payload ? payload.options : null;
|
|
109
116
|
};
|
|
110
117
|
|