saasufy-components 3.4.0 → 3.4.1
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/model-input.js +2 -1
- package/package.json +1 -1
package/model-input.js
CHANGED
|
@@ -105,6 +105,7 @@ class ModelInput extends SocketConsumer {
|
|
|
105
105
|
let hideErrorLogs = this.hasAttribute('hide-error-logs');
|
|
106
106
|
let enableRebound = this.hasAttribute('enable-rebound');
|
|
107
107
|
let hasConsumers = this.hasAttribute('consumers');
|
|
108
|
+
let writeOnly = type === 'file' && !hasConsumers;
|
|
108
109
|
|
|
109
110
|
let socket;
|
|
110
111
|
if (socketInstanceProperty) {
|
|
@@ -128,7 +129,7 @@ class ModelInput extends SocketConsumer {
|
|
|
128
129
|
}
|
|
129
130
|
this.socket = socket;
|
|
130
131
|
|
|
131
|
-
let modelFieldList =
|
|
132
|
+
let modelFieldList = writeOnly ? [] : [ modelField ];
|
|
132
133
|
|
|
133
134
|
let model = new AGModel({
|
|
134
135
|
socket: this.socket,
|