@stoker-platform/web-app 0.5.154 → 0.5.156
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -182,7 +182,12 @@ export const getFormattedFieldValue = (
|
|
|
182
182
|
}
|
|
183
183
|
}}
|
|
184
184
|
>
|
|
185
|
-
<span
|
|
185
|
+
<span
|
|
186
|
+
className={cn(
|
|
187
|
+
card === "header" && "line-clamp-2",
|
|
188
|
+
card && card !== "header" && maxLines && `line-clamp-${maxLines - 1}`,
|
|
189
|
+
)}
|
|
190
|
+
>
|
|
186
191
|
{/* eslint-disable-next-line security/detect-object-injection */}
|
|
187
192
|
{titleField ? (Object.values(value)[0] as StokerRecord)[titleField] : Object.keys(value)[0]}
|
|
188
193
|
</span>
|
|
@@ -12,13 +12,14 @@ export const isServerUpdate = (collection: CollectionSchema, record: Partial<Sto
|
|
|
12
12
|
const tokenFields = fields.filter((field) => field.saveToAuthToken)
|
|
13
13
|
return !!(
|
|
14
14
|
serverWriteOnly ||
|
|
15
|
-
(auth &&
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
(auth &&
|
|
16
|
+
(user?.operation ||
|
|
17
|
+
record.Role ||
|
|
18
|
+
record.Enabled !== undefined ||
|
|
19
|
+
record.Name ||
|
|
20
|
+
record.Email ||
|
|
21
|
+
record.Photo_URL ||
|
|
22
|
+
tokenFields.some((field) => record[field.name] !== undefined)))
|
|
22
23
|
)
|
|
23
24
|
}
|
|
24
25
|
|