code7-leia 0.1.135 → 0.1.137

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.
@@ -1409,13 +1409,13 @@ var FileArea = function FileArea() {
1409
1409
  dispatch(getFilesAction(id));
1410
1410
  }, [id]);
1411
1411
  React.useEffect(function () {
1412
- var options = tags.map(function (tag) {
1413
- return {
1414
- label: tag,
1415
- value: tag
1416
- };
1417
- });
1418
- if (options !== optionsPresset) {
1412
+ if (tags.length > 0) {
1413
+ var options = tags.map(function (tag) {
1414
+ return {
1415
+ label: tag,
1416
+ value: tag
1417
+ };
1418
+ });
1419
1419
  setOptionsPresset(options);
1420
1420
  }
1421
1421
  }, [tags]);