react-table-edit 1.2.10 → 1.2.12
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -865,7 +865,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
865
865
|
setOptionsLoad(rs);
|
|
866
866
|
};
|
|
867
867
|
(0, import_react6.useEffect)(() => {
|
|
868
|
-
if (optionsLoad?.length === 0 && allowCreate && !isMulti
|
|
868
|
+
if (optionsLoad?.length === 0 && allowCreate && !isMulti) {
|
|
869
869
|
setOptionsLoad([{ label: `Create "${searchTerm}"`, value: searchTerm, isCreated: true }]);
|
|
870
870
|
}
|
|
871
871
|
}, [optionsLoad]);
|
package/dist/index.mjs
CHANGED
|
@@ -828,7 +828,7 @@ var SelectTable = forwardRef((props, ref) => {
|
|
|
828
828
|
setOptionsLoad(rs);
|
|
829
829
|
};
|
|
830
830
|
useEffect3(() => {
|
|
831
|
-
if (optionsLoad?.length === 0 && allowCreate && !isMulti
|
|
831
|
+
if (optionsLoad?.length === 0 && allowCreate && !isMulti) {
|
|
832
832
|
setOptionsLoad([{ label: `Create "${searchTerm}"`, value: searchTerm, isCreated: true }]);
|
|
833
833
|
}
|
|
834
834
|
}, [optionsLoad]);
|